diff options
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++; } |