diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 13:28:55 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 18:26:14 +0200 |
commit | 32af48e442a960b8c3f199f5ffad28a34590fcda (patch) | |
tree | c291cb97627bd2cfb65167347261d5ef8f521bfd /data/lib/addAttachmentRow.js | |
parent | 2382ba19afc84e9b747a7981ebf72aaa704f08b6 (diff) | |
download | bugzilla-triage-32af48e442a960b8c3f199f5ffad28a34590fcda.tar.gz |
Reformatting to MoFo coding style
Diffstat (limited to 'data/lib/addAttachmentRow.js')
-rw-r--r-- | data/lib/addAttachmentRow.js | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/data/lib/addAttachmentRow.js b/data/lib/addAttachmentRow.js index 204192e..a2b67ee 100644 --- a/data/lib/addAttachmentRow.js +++ b/data/lib/addAttachmentRow.js @@ -3,39 +3,41 @@ "use strict"; function addAttachmentCallback(resp) { - var newAttachID = parseInt(resp.params.param.value.array.data.value.int, 10); + var newAttachID = parseInt( + resp.params.param.value.array.data.value.int, 10); console.log("attachID = " + newAttachID); // FIXME callback.call(param, newAttachID, data.length); } /** - * - * This has to stay in RHBugzillaPage because upstream doesn't have addAttachment - * XML-RPC call yet. + * + * This has to stay in RHBugzillaPage because upstream doesn't have + * addAttachment XML-RPC call yet. */ function addAttachment(data, callback, param) { var params = []; if (!constantData.passwordState.passAvailable) { - console.error("addAttachment : No password, no XML-RPC calls; sorry"); + console + .error("addAttachment : No password, no XML-RPC calls; sorry"); return null; } params.push(getBugNo()); params.push({ - description: titleParsedAttachment, - filename: "parsed-backtrace.txt", - contenttype: "text/plain", - data: window.btoa(data), - nomail: true + description : titleParsedAttachment, + filename : "parsed-backtrace.txt", + contenttype : "text/plain", + data : window.btoa(data), + nomail : true }); self.postMessage(new Message("MakeXMLRPCall", { - url: constantData.XMLRPCData[window.location.hostname].url, - login: getLogin(), - method: "bugzilla.addAttachment", - params: params, - callRPC: "AddAttachmentCallback" + url : constantData.XMLRPCData[window.location.hostname].url, + login : getLogin(), + method : "bugzilla.addAttachment", + params : params, + callRPC : "AddAttachmentCallback" })); reqCounter++; } |