diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-13 13:18:46 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-13 13:18:46 +0200 |
commit | 978300d1e4126351a3174d530d651161616c471f (patch) | |
tree | 72329e90eae22f2d54a78f4afc812d0f249c46c6 /data | |
parent | bd5a829925dcebad3b25a9d22703958b673d8fe2 (diff) | |
download | bugzilla-triage-978300d1e4126351a3174d530d651161616c471f.tar.gz |
Don't allow submit for 0xFFFF component.
Fix #97
Diffstat (limited to 'data')
-rw-r--r-- | data/rhlib/rhbzpage.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/rhlib/rhbzpage.js b/data/rhlib/rhbzpage.js index 2368696..8b1ac2f 100644 --- a/data/rhlib/rhbzpage.js +++ b/data/rhlib/rhbzpage.js @@ -500,6 +500,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() { |