aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-05-13 13:18:46 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:53:47 +0200
commit216ccdca63a69b99e2b0bc282c4e250fb76c3cd3 (patch)
treeb3e118345d23d70b9ed1e81daa13775fe124d04c /data
parent7acfac4185ffcdb151e633a84b59525bcdd49792 (diff)
downloadbugzilla-triage-216ccdca63a69b99e2b0bc282c4e250fb76c3cd3.tar.gz
Don't allow submit for 0xFFFF component.
Fix #97
Diffstat (limited to 'data')
-rw-r--r--data/rhlib/rhbzpage.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js
index 48a5758..881bba9 100644
--- a/data/rhlib/rhbzpage.js
+++ b/data/rhlib/rhbzpage.js
@@ -502,6 +502,16 @@ function RHBZinit(attachments) {
setBranding(XorgLogAttList);
+ // Don't allow to submit a page which would change the bug to 0xFFFF component
+ document.forms.namedItem("changeform").addEventListener(
+ "submit", function(aEvt) {
+ if (getComponent() == "0xFFFF") {
+ alert("Don't change the component to 0xFFFF");
+ aEvt.stopPropagation();
+ aEvt.preventDefault();
+ }
+ }, false);
+
// Uncheck "set default assignee" when the assignee is changed by other means
document.getElementById("assigned_to").addEventListener("change",
function() {