From f5bd0d092b9fc8d8bf770b4595dd788e8214c13d Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 24 Apr 2011 23:43:49 +0200 Subject: Don't allow marking bug as triaged when it doesn't have severity set. --- data/lib/bugzillaDOMFunctions.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data/lib/bugzillaDOMFunctions.js') diff --git a/data/lib/bugzillaDOMFunctions.js b/data/lib/bugzillaDOMFunctions.js index 0f22020..8392b87 100644 --- a/data/lib/bugzillaDOMFunctions.js +++ b/data/lib/bugzillaDOMFunctions.js @@ -202,6 +202,15 @@ function getSummary() { return document.getElementById("short_desc_nonedit_display").textContent; } +/** + * Get the current title of the bug + * + * @return string + */ +function getSeverity() { + return document.getElementById("bug_severity").value; +} + /** * Get the current email of the reporter of the bug. * -- cgit