diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-09-01 10:29:28 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-09-01 10:53:51 +0200 |
commit | 5efc52cf5cec2b9b5f75351da8e473c2f90266b5 (patch) | |
tree | 4bb5bbc15dde0607737e642c0a5075875ebf58bb /data/rhlib/addAttachmentRow.js | |
parent | b6b75faa9ef841396731398a2882e869df5b8ae7 (diff) | |
download | bugzilla-triage-5efc52cf5cec2b9b5f75351da8e473c2f90266b5.tar.gz |
Eliminating MakeJSONRPC calls and fixing multiple logins.
Fixes #113.
Diffstat (limited to 'data/rhlib/addAttachmentRow.js')
-rw-r--r-- | data/rhlib/addAttachmentRow.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/data/rhlib/addAttachmentRow.js b/data/rhlib/addAttachmentRow.js index c8724e3..6fab1bd 100644 --- a/data/rhlib/addAttachmentRow.js +++ b/data/rhlib/addAttachmentRow.js @@ -2,7 +2,7 @@ //http://www.opensource.org/licenses/mit-license.php "use strict"; -//FIXME resp is JSON, not XML anymore +// FIXME resp is JSON, not XML anymore function addAttachmentCallback(resp) { var newAttachID = parseInt( resp.params.param.value.array.data.value.int, 10); @@ -51,12 +51,6 @@ function addAttachment(data, callback, param) { nomail : true }; - self.postMessage(new Message("MakeJSONRPCall", { - url : constantData.XMLRPCData[window.location.hostname].url - .replace("xmlrpc.cgi", "jsonrpc.cgi"), - method : "bugzilla.addAttachment", - params : params, - callRPC : "AddAttachmentCallback" - })); + makeJSONRPCCall("bugzilla.addAttachment", params, addAttachmentCallback); reqCounter++; } |