summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/bug.js5
-rw-r--r--js/instant-search.js3
2 files changed, 6 insertions, 2 deletions
diff --git a/js/bug.js b/js/bug.js
index 1089bce99..308317c3e 100644
--- a/js/bug.js
+++ b/js/bug.js
@@ -184,7 +184,10 @@ YAHOO.bugzilla.dupTable = {
var args = JSON.stringify({
version: "1.1",
method: 'MyDashboard.bug_interest_unmark',
- params: { bug_ids: bug_ids },
+ params: {
+ bug_ids: bug_ids,
+ Bugzilla_api_token: (BUGZILLA.api_token ? BUGZILLA.api_token : '')
+ },
});
var callbacks = {
failure: function(res) {
diff --git a/js/instant-search.js b/js/instant-search.js
index a3f051f2f..8277b97a9 100644
--- a/js/instant-search.js
+++ b/js/instant-search.js
@@ -151,7 +151,8 @@ YAHOO.bugzilla.instantSearch = {
product: YAHOO.bugzilla.instantSearch.getProduct(),
summary: query,
limit: 20,
- include_fields: [ "id", "summary", "status", "resolution", "component" ]
+ include_fields: [ "id", "summary", "status", "resolution", "component" ],
+ Bugzilla_api_token : (BUGZILLA.api_token ? BUGZILLA.api_token : '')
}
};