diff options
author | Dylan William Hardison <dylan@hardison.net> | 2014-10-10 19:58:41 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-10-10 19:58:41 +0200 |
commit | ccea670dcba24ff2ac0233437aa549b22edb390c (patch) | |
tree | d59168e74f767e4665f2736130b4e97254b83418 /js | |
parent | 1f84551e1414eeba886e04e0e9e2a8e61d568fc1 (diff) | |
download | bugzilla-ccea670dcba24ff2ac0233437aa549b22edb390c.tar.gz bugzilla-ccea670dcba24ff2ac0233437aa549b22edb390c.tar.xz |
Bug 1074586 - New Feature: Bugs of Interest
r=dkl
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) }, }; })(); |