Skip to content

Instantly share code, notes, and snippets.

@jmakeig
Created July 11, 2013 18:07
Show Gist options
  • Save jmakeig/5977750 to your computer and use it in GitHub Desktop.
Save jmakeig/5977750 to your computer and use it in GitHub Desktop.
MarkLogic BugTrack automation: Sets the status and fix-in versions. Seems to only work on the Chrome JavaScript console that makes a $ selector function available.
function sel(name, val, $) {Array.prototype.slice.call($("select[name="+name+"]").options).forEach(function(opt) {if(opt.value === val) opt.selected = true;})}; sel("status", "will not fix", $); sel("new-fix-in-version", "", $);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment