aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/otherButtons.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-24 23:43:49 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:46:49 +0200
commit6b739e89d0fa88899d680d09bbc7bcbd2628de31 (patch)
treef3ed094618b8c140473345fb0b19bc3d13dd4941 /data/lib/otherButtons.js
parent2a04c3fc60e4f9cd8b59cbe6bcfbd56d0e29c98f (diff)
downloadbugzilla-triage-6b739e89d0fa88899d680d09bbc7bcbd2628de31.tar.gz
Don't allow marking bug as triaged when it doesn't have severity set.
Diffstat (limited to 'data/lib/otherButtons.js')
-rw-r--r--data/lib/otherButtons.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/data/lib/otherButtons.js b/data/lib/otherButtons.js
index 2f93ea7..7bd36f3 100644
--- a/data/lib/otherButtons.js
+++ b/data/lib/otherButtons.js
@@ -62,12 +62,17 @@ function markBugTriaged() {
// /fedora-meeting.2009-11-24-15.11.log.html
if (!hasXorgBugsCategory()) {
alert("This won't do! First set the category!");
- } else {
+ }
+ else if (getSeverity() == 'unspecified') {
+ alert("This won't do! Specify some severity!");
+ }
+ else {
addStuffToTextBox("keywords","Triaged");
}
}
- var FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z_]*\\]");
+var FillMagicDoneRE = new RegExp("^\\s*\\[[0-9a-zA-Z_]*\\]");
+
function addingEmbelishments(list) {
var maintCCAddr = "";