Last active
December 22, 2015 11:09
-
-
Save cdennington/6464117 to your computer and use it in GitHub Desktop.
Stop people not marking issues on progress
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
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