aboutsummaryrefslogtreecommitdiffstats
path: root/data/mozlib/mozpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/mozlib/mozpage.js')
-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) {