diff options
-rw-r--r-- | bugzillaBugTriage.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bugzillaBugTriage.js b/bugzillaBugTriage.js index 9745bdf..e36fc09 100644 --- a/bugzillaBugTriage.js +++ b/bugzillaBugTriage.js @@ -648,9 +648,11 @@ BzPage.prototype.setBranding = function () { } // mark suspicious components - if (suspiciousComponents && isInList(this.component,suspiciousComponents)) { - this.dok.getElementById("bz_component_edit_container"). - style.background = "red none"; + var compElems; + if (suspiciousComponents && isInList(this.component,suspiciousComponents) + && (compElems = + this.dok.getElementById("bz_component_edit_container"))) { + compElems.style.background = "red none"; } }; @@ -1219,8 +1221,8 @@ BzPage.prototype.createFixAllButton = function (list) { */ BzPage.prototype.addTextLink = function (row) { var that = this; - console.log("row = " + row); - var elemS = row.getElementsByTagName("td"); + console.log("row = " + row[4]); + var elemS = row[4].getElementsByTagName("td"); var elem = elemS[elemS.length-1]; elem.innerHTML = "<br/><a href=''>Text</a>"; elem.addEventListener("click",function (x) { |