Pman.Dialog.CoreEmail.bjs
[Pman.Core] / Pman.Dialog.CoreEmail.js
index f57cdd0..d674eac 100644 (file)
@@ -28,6 +28,7 @@ Pman.Dialog.CoreEmail = {
   '396ecabf0cd1f9503e591418851ef406' :"Edit / Create Message",
   'b9c49611cfda3259a2b837b39489e650' :"Add Image",
   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
+  'c4ca4238a0b923820dcc509a6f75849b' :"1",
   'bd88a20b53a47f7b5704a83a15ff5506' :"Saved Version",
   'b20a8b77b05d53b4e695738731400c85' :"Mailout Name",
   '1bd18d39370b7f26c1c5e18067b74c6f' :"Html File",
@@ -607,6 +608,30 @@ Pman.Dialog.CoreEmail = {
                xns : Roo.form,
                '|xns' : 'Roo.form',
                xtype : 'TextField'
+              },
+              {
+               hideLabels : true,
+               xns : Roo.form,
+               '|xns' : 'Roo.form',
+               xtype : 'Column',
+               items  : [
+                {
+                 boxLabel : 'Enabled - will be sent out',
+                 checked : true,
+                 name : 'active',
+                 value : 1,
+                 valueOff : 0,
+                 xns : Roo.form,
+                 '|xns' : 'Roo.form',
+                 xtype : 'Checkbox',
+                 listeners : {
+                  check : function (_self, checked)
+                   {
+                       Roo.log(['checked : ', checked]);
+                   }
+                 }
+                }
+               ]
               }
              ]
             },
@@ -671,7 +696,6 @@ Pman.Dialog.CoreEmail = {
                      Roo.log('body dirty, auto save!');
                      
                      body.fireEvent('autosave', body);
-                         
                     
                  },
                  clearUp : false,
@@ -725,6 +749,7 @@ Pman.Dialog.CoreEmail = {
                        Roo.log('autosave');
                        
                        var id = _this.form.findField('id').getValue() * 1;
+                       
                        /*
                        if(!_self.editorcore.sourceEditMode){
                            _self.syncValue();
@@ -732,6 +757,7 @@ Pman.Dialog.CoreEmail = {
                            _self.pushValue();
                        }
                        */
+                       
                        new Pman.Request({
                            url : baseURL + '/Roo/Events.php',
                            method :'POST',
@@ -749,7 +775,6 @@ Pman.Dialog.CoreEmail = {
                            },
                            failure : function() 
                            {
-                               //Roo.MessageBox.alert("Error", "autosave failed");
                                Roo.log('body autosave failed?!');
                            }
                        });