Pman.Dialog.CoreEmail.bjs
[Pman.Core] / Pman.Dialog.CoreEmail.js
index 6d1eb56..b528a72 100644 (file)
@@ -546,7 +546,7 @@ Pman.Dialog.CoreEmail = {
                 
                  if (action.type == 'setdata') {
                  
-                     setInterval(_this.form.findField('bodytext').autosave, 60000);
+                     setInterval(_this.form.findField('bodytext').autosave, 5000);
                      
                      _this.data.module = _this.data.module || 'crm_mailing_list_message';
                      
@@ -571,6 +571,9 @@ Pman.Dialog.CoreEmail = {
                  }
                  if (action.type == 'load') {
                      _this.dialog.el.unmask();
+                     
+                     _this.form.findField('bodytext').originalValue = _this.form.findField('bodytext').getValue();
+                     
                      return;
                  }
                  if (action.type =='submit') {