aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-16 01:55:20 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-16 01:55:20 +0100
commit23cd6fe15efcec583429a2650fd2ffc4a2d8049b (patch)
treecce8b3f4c9e48eeedc12abda90757d1f88fc39db
parent210d5ebb2c784f0a85653db94d405452c19fb433 (diff)
downloadbugzilla-triage-23cd6fe15efcec583429a2650fd2ffc4a2d8049b.tar.gz
Fix local query, the first table is numbered 0, not 1.
-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);