diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-24 23:43:49 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-25 21:37:57 +0200 |
commit | f5bd0d092b9fc8d8bf770b4595dd788e8214c13d (patch) | |
tree | 6b22d026032d921b0d5b9e73b95dec9381857345 /data/lib/otherButtons.js | |
parent | 3fba7044de4b09e12077a6ef3dbb5d0fad9580e5 (diff) | |
download | bugzilla-triage-f5bd0d092b9fc8d8bf770b4595dd788e8214c13d.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.js | 9 |
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 = ""; |