aboutsummaryrefslogtreecommitdiffstats
path: root/data/mozlib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-09-01 00:00:58 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-09-01 09:17:18 +0200
commitb6b75faa9ef841396731398a2882e869df5b8ae7 (patch)
treef7ece86109980c8104aa2f8ccffb8503bcb6384f /data/mozlib
parent2ed5e245736860323819a93336b28d3b39176f17 (diff)
downloadbugzilla-triage-b6b75faa9ef841396731398a2882e869df5b8ae7.tar.gz
Removing GetURL and some overcomplicated parts.
Diffstat (limited to 'data/mozlib')
-rw-r--r--data/mozlib/mozpage.js18
1 files changed, 10 insertions, 8 deletions
diff --git a/data/mozlib/mozpage.js b/data/mozlib/mozpage.js
index 5185cd7..81eb4fb 100644
--- a/data/mozlib/mozpage.js
+++ b/data/mozlib/mozpage.js
@@ -16,14 +16,16 @@ var mozFlags = (function() {
function _init() {
var tdColumn2 = document.getElementById("bz_show_bug_column_2");
- var flag_selects = tdColumn2.querySelectorAll("td.field_value select");
- Array.forEach(flag_selects, function(sel) {
- var label = tdColumn2.querySelector("label[for='" + sel.id + "']");
- if (label) {
- var key = label.textContent.trim().replace(/\s*:?$/,"");
- flags[key] = sel.id;
- }
- });
+ if (tdColumn2) { // TODO we should really make some configuration for non-Mozilla
+ var flag_selects = tdColumn2.querySelectorAll("td.field_value select");
+ Array.forEach(flag_selects, function(sel) {
+ var label = tdColumn2.querySelector("label[for='" + sel.id + "']");
+ if (label) {
+ var key = label.textContent.trim().replace(/\s*:?$/,"");
+ flags[key] = sel.id;
+ }
+ });
+ }
}
function _setFlag(label) {