From: Edward Date: Mon, 3 Sep 2018 05:45:53 +0000 (+0800) Subject: Pman.Dialog.CmsBlog.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=80c20a05679d09b9b3fdf5908d91a498d3a0ec70 Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index bfe52a85..00265053 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 _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" + "|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.hide();\n return;\n }\n \n }\n );\n \n return;\n }\n \n _this.form.reset();\n _this.dialog.hide();\n\n}\n" }, "text" : "Cancel", "xtype" : "Button", diff --git a/Pman.Dialog.CmsBlog.js b/Pman.Dialog.CmsBlog.js index 15bcce5b..060ca48c 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -424,7 +424,6 @@ Pman.Dialog.CmsBlog = { function(res) { if(res != 'yes') { _this.form.reset(); - _this.dialog.getLayout().getRegion('west').collapse(); _this.dialog.hide(); return; } @@ -436,7 +435,6 @@ Pman.Dialog.CmsBlog = { } _this.form.reset(); - _this.dialog.getLayout().getRegion('west').collapse(); _this.dialog.hide(); }