Disable compose textarea when converting from HTML
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Nov 2009 20:38:07 +0000 (13:38 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Nov 2009 20:38:07 +0000 (13:38 -0700)
imp/js/compose-dimp.js

index 98d8a8e..3c1a5e1 100644 (file)
@@ -355,8 +355,11 @@ var DimpCompose = {
             text = this.rte.getData();
             $('composeMessageParent').childElements().invoke('hide');
             $('composeMessage').show().setStyle({ visibility: null }).focus();
+            this.RTELoading('show');
 
             DimpCore.doAction('Html2Text', { text: text }, { callback: this.setMessageText.bind(this), ajaxopts: { asynchronous: false } });
+
+            this.RTELoading('hide');
         } else {
             this.editor_on = true;
             if (!noupdate) {