Skip to content

Instantly share code, notes, and snippets.

@SethWilson
Created March 7, 2012 15:35
Show Gist options
  • Save SethWilson/1993830 to your computer and use it in GitHub Desktop.
Save SethWilson/1993830 to your computer and use it in GitHub Desktop.
Request Tracker: Complete as per Request
function runthis() {
// Completed as per request bookmarklet
$('#status').val('9');
$('select[name="resolution"]').val('10');
$('#notification_all').click();
$('textarea[name="reason"]').val('Complete as per request');
$("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