diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-10-14 07:13:34 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-14 07:13:34 +0200 |
commit | b348b6a10cabddf1b579ebaca0d799def2900e52 (patch) | |
tree | 691094e3cc90740abe63ae40e4e75e8e12ded6d6 /js | |
parent | 41e58e2f043162806bfb9fd3723a5391c9599de2 (diff) | |
download | bugzilla-b348b6a10cabddf1b579ebaca0d799def2900e52.tar.gz bugzilla-b348b6a10cabddf1b579ebaca0d799def2900e52.tar.xz |
Bug 1074586 - New Feature: Bugs of Interest
I just want to walk around in circles
walk around in circles
Diffstat (limited to 'js')
-rw-r--r-- | js/bug.js | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -168,10 +168,27 @@ YAHOO.bugzilla.dupTable = { + res.responseText); }, }; + YAHOO.util.Connect.setDefaultPostHeader('application/json', true); + YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi', callbacks, args) + }, + }; + YAHOO.bugzilla.bugInterest = { + unmark: function(bug_ids) { + var args = JSON.stringify({ + version: "1.1", + method: 'MyDashboard.bug_interest_unmark', + params: { bug_ids: bug_ids }, + }); + var callbacks = { + failure: function(res) { + if (console) + console.log("failed to unmark interest: " + + res.responseText); + }, + }; YAHOO.util.Connect.setDefaultPostHeader('application/json', true); - YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi', callbacks, - args) + YAHOO.util.Connect.asyncRequest('POST', 'jsonrpc.cgi', callbacks, args) }, }; })(); |