Pman.Dialog.CoreEmail.bjs
[Pman.Core] / Pman.Dialog.CoreEmail.js
index 6d1eb56..f57cdd0 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') {
@@ -754,8 +757,6 @@ Pman.Dialog.CoreEmail = {
                    },
                   savedpreview : function (_self)
                    {
-                       Roo.log('saved preview');
-                       
                        var id = _this.form.findField('id').getValue() * 1;
                        
                        var successFn = function(res){
@@ -960,6 +961,7 @@ Pman.Dialog.CoreEmail = {
                      xtype : 'Separator'
                     },
                     {
+                     cls : 'x-init-enable',
                      text : _this._strings['bd88a20b53a47f7b5704a83a15ff5506'] /* Saved Version */,
                      xns : Roo.Toolbar,
                      '|xns' : 'Roo.Toolbar',
@@ -968,6 +970,7 @@ Pman.Dialog.CoreEmail = {
                       click : function (_self, e)
                        {
                            this.scope.owner.fireEvent('savedpreview', this.scope.owner);
+                           
                        }
                      }
                     }