Created
March 7, 2012 15:38
-
-
Save SethWilson/1993846 to your computer and use it in GitHub Desktop.
Request Tracker: Won't Fix bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function runthis() { | |
// Won't fix request bookmarklet | |
$('#status').val('9'); | |
$('select[name="resolution"]').val('10'); | |
$('#notification_all').click(); | |
$('textarea[name="reason"]').val('Sorry - won't fix this'); | |
$("form[name=close_form]").submit(); | |
} | |
if (typeof jQuery == 'undefined') { | |
var jQ = document.createElement('script'); | |
jQ.type = 'text/javascript'; | |
jQ.onload=runthis; | |
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
document.body.appendChild(jQ); | |
} else { | |
runthis(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment