aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/lib/bzpage.js8
-rw-r--r--data/lib/util.js3
2 files changed, 6 insertions, 5 deletions
diff --git a/data/lib/bzpage.js b/data/lib/bzpage.js
index 1a3e6b4..c256228 100644
--- a/data/lib/bzpage.js
+++ b/data/lib/bzpage.js
@@ -722,7 +722,7 @@ function getSelection () {
* @param product (optional) string with the product name, if undefined,
* search in all products
* @return None
- *
+ *
*/
function queryInNewTab(text, component, product) {
var urlStr = "https://" + window.location.hostname + "/buglist.cgi?query_format=advanced";
@@ -747,11 +747,11 @@ function queryInNewTab(text, component, product) {
// for further investigative searches
if (text) {
text = encodeURIComponent(text.trim());
- var searchText = "&field1-0-0=longdesc&type1-0-0=substring&value1-0-0="
+ var searchText = "&field0-0-0=longdesc&type0-0-0=substring&value0-0-0="
+ text
- + "&field1-0-1=attach_data.thedata&type1-0-1=substring&value1-0-1="
+ + "&field0-0-1=attach_data.thedata&type0-0-1=substring&value0-0-1="
+ text
- + "&field1-0-2=status_whiteboard&type1-0-2=substring&value1-0-2="
+ + "&field0-0-2=status_whiteboard&type0-0-2=substring&value0-0-2="
+ text;
urlStr += searchText;
postMessage(new Message("OpenURLinTab", urlStr));
diff --git a/data/lib/util.js b/data/lib/util.js
index 0ecc318..1b5c37d 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -115,7 +115,8 @@ function createDeadLink (id, text, parent, callback, params, before, covered, ac
} else {
newAElem.setAttribute("href", "");
newAElem.addEventListener("click", function(evt) {
- callback.apply(null, params);
+ // callback.apply(null, params);
+ callback(params);
evt.stopPropagation();
evt.preventDefault();
}, false);