Pman.Dialog.CmsBlog.bjs
authorEdward <edward@roojs.com>
Mon, 3 Sep 2018 05:44:28 +0000 (13:44 +0800)
committerEdward <edward@roojs.com>
Mon, 3 Sep 2018 05:44:28 +0000 (13:44 +0800)
Pman.Dialog.CmsBlog.js

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

index 892bf2f..d89ceae 100644 (file)
     },
     {
      "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",
index d2aa483..5df6d91 100644 (file)
@@ -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();
         
         }