From 2fd9a78fae9079c8438a98df842e3a014c5191ef Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 4 Jan 2010 16:11:42 +0100 Subject: Fixing two more typos and missing index. --- bugzillaBugTriage.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bugzillaBugTriage.js') 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 = "
Text"; elem.addEventListener("click",function (x) { -- cgit