},
{
"listeners" : {
- "|click" : " function() {\n\n _this.exit = false;\n \n \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 \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}\n"
+ "|click" : " function() {\n _this.exit = false;\n \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"
},
"text" : "Save",
"xtype" : "Button",
text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
listeners : {
click : function() {
-
- _this.exit = false;
-
-
-
- if(!_this.form1.findField('body').editorcore.sourceEditMode){
- _this.form1.findField('body').syncValue();
- _this.form2.findField('extended').syncValue();
- }else{
- _this.form1.findField('body').pushValue();
- _this.form2.findField('extended').pushValue();
- }
-
- if(_this.data.page_type_id_name != 'blog' && AppModules.indexOf("Crm") == -1){
- _this.interests.reset();
- }
+ _this.exit = false;
+
+ /*
+ if(!_this.form1.findField('body').editorcore.sourceEditMode){
+ _this.form1.findField('body').syncValue();
+ _this.form2.findField('extended').syncValue();
+ }else{
+ _this.form1.findField('body').pushValue();
+ _this.form2.findField('extended').pushValue();
+ }
+ */
+ if(_this.data.page_type_id_name != 'blog' && AppModules.indexOf("Crm") == -1){
+ _this.interests.reset();
+ }
- if(
- _this.trform.isDirty() ||
- _this.trform1.isDirty() ||
- _this.trform2.isDirty() ||
- _this.trform3.isDirty()
- ) {
- Roo.MessageBox.confirm(
- "Confirm",
- "Do you want to save the translation",
- function(res) {
- if(res != 'yes') {
- _this.dialog.el.mask("Saving");
- _this.form.doAction("submit");
- return;
- }
-
+ if(
+ _this.trform.isDirty() ||
+ _this.trform1.isDirty() ||
+ _this.trform2.isDirty() ||
+ _this.trform3.isDirty()
+ ) {
+ Roo.MessageBox.confirm(
+ "Confirm",
+ "Do you want to save the translation",
+ function(res) {
+ if(res != 'yes') {
+ _this.dialog.el.mask("Saving");
+ _this.form.doAction("submit");
+ return;
}
- );
+
+ }
+ );
- return;
- }
-
-
+ return;
+ }
+
_this.dialog.el.mask("Saving");
_this.form.doAction("submit");