Pman.Dialog.CmsBlog.bjs
authoredward <edward@roojs.com>
Thu, 21 Dec 2017 03:48:40 +0000 (11:48 +0800)
committeredward <edward@roojs.com>
Thu, 21 Dec 2017 03:48:40 +0000 (11:48 +0800)
Pman.Dialog.CmsBlog.js

Pman.Dialog.CmsBlog.bjs
Pman.Dialog.CmsBlog.js

index 15dfaa4..9d6cf3a 100644 (file)
     },
     {
      "listeners" : {
-      "|click" : " function() {\n    _this.exit = false;\n    \n    if(!_this.form1.findField('body').editorcore.sourceEditMode){\n        _this.form1.findField('body').syncValue();\n        _this.form2.findField('extended').syncValue();\n    }else{\n        _this.form1.findField('body').pushValue();\n        _this.form2.findField('extended').pushValue();\n    }\n    \n    if(_this.data.page_type_id_name != 'blog' && AppModules.indexOf(\"Crm\") == -1){\n        _this.interests.reset();\n    }\n        \n    if(\n        _this.trform.isDirty() ||\n        _this.trform1.isDirty() ||\n        _this.trform2.isDirty() ||\n        _this.trform3.isDirty()\n    ) {\n        Roo.MessageBox.confirm(\n            \"Confirm\", \n            \"Do you want to save the translation\",\n            function(res) {\n                if(res != 'yes') {\n                    _this.dialog.el.mask(\"Saving\");\n                    _this.form.doAction(\"submit\");\n                    return;\n                }\n                \n            }\n        );\n            \n        return;\n    }\n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}\n"
+      "|click" : " function() {\n    _this.exit = false;\n    \n    if(!_this.form1.findField('body').editorcore.sourceEditMode){\n        _this.form1.findField('body').syncValue();\n        _this.form2.findField('extended').syncValue();\n        Roo.log('syncValue');\n    }else{\n        _this.form1.findField('body').pushValue();\n        _this.form2.findField('extended').pushValue();\n        Roo.log('pushValue');\n    }\n    \n    if(_this.data.page_type_id_name != 'blog' && AppModules.indexOf(\"Crm\") == -1){\n        _this.interests.reset();\n    }\n        \n    if(\n        _this.trform.isDirty() ||\n        _this.trform1.isDirty() ||\n        _this.trform2.isDirty() ||\n        _this.trform3.isDirty()\n    ) {\n        Roo.MessageBox.confirm(\n            \"Confirm\", \n            \"Do you want to save the translation\",\n            function(res) {\n                if(res != 'yes') {\n                    _this.dialog.el.mask(\"Saving\");\n                    _this.form.doAction(\"submit\");\n                    return;\n                }\n                \n            }\n        );\n            \n        return;\n    }\n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}\n"
      },
      "text" : "Save",
      "xtype" : "Button",
index 33a8b6d..2e6fb6e 100644 (file)
@@ -374,9 +374,11 @@ Pman.Dialog.CmsBlog = {
             if(!_this.form1.findField('body').editorcore.sourceEditMode){
                 _this.form1.findField('body').syncValue();
                 _this.form2.findField('extended').syncValue();
+                Roo.log('syncValue');
             }else{
                 _this.form1.findField('body').pushValue();
                 _this.form2.findField('extended').pushValue();
+                Roo.log('pushValue');
             }
             
             if(_this.data.page_type_id_name != 'blog' && AppModules.indexOf("Crm") == -1){