From: Edward Date: Mon, 3 Sep 2018 05:44:28 +0000 (+0800) Subject: Pman.Dialog.CmsBlog.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=86a70cc111f1d0cdf91868b14fe25c9fd641b675 Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index 892bf2f7..d89ceae2 100644 --- a/Pman.Dialog.CmsBlog.bjs +++ b/Pman.Dialog.CmsBlog.bjs @@ -2110,7 +2110,7 @@ }, { "listeners" : { - "|click" : " function() {\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.form.reset();\n\n _this.dialog.hide();\n return;\n }\n \n }\n );\n \n return;\n }\n \n _this.form.reset();\n\n _this.dialog.hide();\n\n}\n" + "|click" : " function() {\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.form.reset();\n _this.dialog.getLayout().getRegion('west').collapse();\n _this.dialog.hide();\n return;\n }\n \n }\n );\n \n return;\n }\n \n _this.form.reset();\n _this.dialog.getLayout().getRegion('west').collapse();\n _this.dialog.hide();\n\n}\n" }, "text" : "Cancel", "xtype" : "Button", diff --git a/Pman.Dialog.CmsBlog.js b/Pman.Dialog.CmsBlog.js index d2aa483c..5df6d91a 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -424,7 +424,7 @@ Pman.Dialog.CmsBlog = { function(res) { if(res != 'yes') { _this.form.reset(); - + _this.dialog.getLayout().getRegion('west').collapse(); _this.dialog.hide(); return; } @@ -436,7 +436,7 @@ Pman.Dialog.CmsBlog = { } _this.form.reset(); - + _this.dialog.getLayout().getRegion('west').collapse(); _this.dialog.hide(); }