diff options
Diffstat (limited to 'data/bzpage.js')
-rw-r--r-- | data/bzpage.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/data/bzpage.js b/data/bzpage.js index 872f4f1..c1ff730 100644 --- a/data/bzpage.js +++ b/data/bzpage.js @@ -30,7 +30,7 @@ onMessage = function onMessage(msg) { document.location.reload(true); break; case "queryLocal": - queryInNewTab(msg.data.data, getComponent(), getProduct()); + queryInNewTab(msg.data, getComponent(), getProduct()); break; case "CreateButtons": constantData = msg.data.constData; @@ -602,7 +602,7 @@ function addStuffToTextBox (id, stuff) { * @param stuff String/Array with keyword(s) to be removed */ function removeStuffFromTextBox (id, stuff) { - var changedElement = this.getElementById(id); + var changedElement = document.getElementById(id); changedElement.value = removeCSVValue(changedElement.value,stuff); } @@ -686,7 +686,7 @@ function getOwner () { * @return String with the maintainer's email address */ function getDefaultBugzillaMaintainer (component) { - var address = filterByRegexp(this.defBugzillaMaintainerArr, component); + var address = filterByRegexp(constantData.defBugzillaMaintainerArr, component); return address; } @@ -854,10 +854,10 @@ function queryInNewTab(text, component, product) { urlStr += "&product=" + product.trim(); } if (component) { - if ("equivalentComponents" in this.constantData) { - var equivCompsArr = this.constantData["equivalentComponents"]. + if ("equivalentComponents" in constantData) { + var equivCompsArr = constantData.equivalentComponents. filter(function (REstr) { - return new RegExp(REstr).test(this.getComponent()); + return new RegExp(REstr).test(getComponent()); }, this); if (equivCompsArr.length > 0) { component = equivCompsArr[0]; @@ -882,7 +882,7 @@ function queryInNewTab(text, component, product) { + "&field1-0-2=status_whiteboard&type1-0-2=substring&value1-0-2=" + text; urlStr += searchText; - postMessage(new Message("OpenURLinPanel", urlStr)); + postMessage(new Message("OpenURLinTab", urlStr)); } } |