Skip to content

Instantly share code, notes, and snippets.

@cdennington
Last active December 22, 2015 11:09
Show Gist options
  • Save cdennington/6464117 to your computer and use it in GitHub Desktop.
Save cdennington/6464117 to your computer and use it in GitHub Desktop.
Stop people not marking issues on progress
jQuery('#issue-form').submit(function() {
var status_dropdown = jQuery("#issue_status_id option:selected").text();
var ratio_dropdown = jQuery("#issue_done_ratio option:selected").text();
if (status_dropdown == "InProgress" && ratio_dropdown == "0 %") {
alert("Are you sure you've not done more work than 0%");
}else if (status_dropdown == "Open") {
alert("Are you sure this shouldn't be marked as in progress");
return false
}else{
return true
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment