From: Michael M Slusarz Date: Wed, 3 Mar 2010 17:11:55 +0000 (-0700) Subject: Some missed ajax action conversions X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c017a779cce36809ce0e9446d478fc5870e2afdc;p=horde.git Some missed ajax action conversions --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index 44aa5e559..ad4a1539f 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -211,15 +211,15 @@ var DimpCompose = { $('composeCache').setValue(d.imp_compose); } - if (d.success || d.action == 'AddAttachment') { + if (d.success || d.action == 'addAttachment') { switch (d.action) { - case 'AutoSaveDraft': - case 'SaveDraft': + case 'autoSaveDraft': + case 'saveDraft': this.setDisabled(false); this.updateDraftsMailbox(); - if (d.action == 'SaveDraft') { + if (d.action == 'saveDraft') { if (this.is_popup && !DIMP.conf_compose.qreply) { DIMP.baseWindow.DimpCore.showNotifications(r.msgs); r.msgs = []; @@ -230,7 +230,7 @@ var DimpCompose = { } break; - case 'SendMessage': + case 'sendMessage': if (this.is_popup && DIMP.baseWindow.DimpBase) { if (d.reply_type) { DIMP.baseWindow.DimpBase.flag(d.reply_type == 'forward' ? '$forwarded' : '\\answered', true, { uid: d.uid, mailbox: d.reply_folder, noserver: true }); @@ -255,7 +255,7 @@ var DimpCompose = { } return this.closeCompose(); - case 'AddAttachment': + case 'addAttachment': this.uploading = false; if (d.success) { this.addAttach(d.atc.num, d.atc.name, d.atc.type, d.atc.size);