aboutsummaryrefslogtreecommitdiffstats
path: root/bugzillaBugTriage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-01-04 16:11:42 +0100
committerMatěj Cepl <mcepl@redhat.com>2010-01-04 16:11:42 +0100
commit2fd9a78fae9079c8438a98df842e3a014c5191ef (patch)
tree194a95ef8353fb215727efa4026587919a5d9551 /bugzillaBugTriage.js
parente995cd9fd0f0e0150e3f330193b2f059de3cc450 (diff)
downloadbugzilla-triage-2fd9a78fae9079c8438a98df842e3a014c5191ef.tar.gz
Fixing two more typos and missing index.
Diffstat (limited to 'bugzillaBugTriage.js')
-rw-r--r--bugzillaBugTriage.js12
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) {