From: Michael M Slusarz Date: Mon, 19 Oct 2009 19:23:51 +0000 (-0600) Subject: Recheck HTML composition box if toggle is canceled X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e35fb1257aa4a8efeb160a13307076fda7d8f6e3;p=horde.git Recheck HTML composition box if toggle is canceled --- diff --git a/imp/js/compose-dimp.js b/imp/js/compose-dimp.js index e719a188e..c5bdacca9 100644 --- a/imp/js/compose-dimp.js +++ b/imp/js/compose-dimp.js @@ -370,13 +370,6 @@ var DimpCompose = { $('rteloading', 'rteloadingtxt').invoke(cmd); }, - toggleHtmlCheckbox: function() - { - if (!this.editor_on || window.confirm(DIMP.text_compose.toggle_html)) { - this.toggleHtmlEditor(); - } - }, - getMsgAreaHeight: function() { if (!this.mp_padding) { @@ -692,7 +685,11 @@ var DimpCompose = { break; case 'htmlcheckbox': - this.toggleHtmlCheckbox(); + if (!this.editor_on || window.confirm(DIMP.text_compose.toggle_html)) { + this.toggleHtmlEditor(); + } else { + $('htmlcheckbox').checked = true; + } break; case 'sendcc':