From 86a70cc111f1d0cdf91868b14fe25c9fd641b675 Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 3 Sep 2018 13:44:28 +0800 Subject: [PATCH] Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- Pman.Dialog.CmsBlog.bjs | 2 +- Pman.Dialog.CmsBlog.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.39.2