aboutsummaryrefslogtreecommitdiffstats
path: root/data/bzpage.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-02-17 18:15:57 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-02-17 18:15:57 +0100
commit66275e3a326dc771c04cb6fbfdee68f09b66ee6c (patch)
tree656776034af77dbd7e13881a7f746e42908df1fa /data/bzpage.js
parent180be96ea28f4c9e6507f5e018f39e117480667b (diff)
downloadbugzilla-triage-66275e3a326dc771c04cb6fbfdee68f09b66ee6c.tar.gz
Make queryLocal and XML-RPC generally work again.
Diffstat (limited to 'data/bzpage.js')
-rw-r--r--data/bzpage.js14
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));
}
}