From 48a52100cf37026b1ddf4f7cbefdb444a8f9d3ce Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 3 Sep 2018 13:48:12 +0800 Subject: [PATCH] Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- Pman.Dialog.CmsBlog.bjs | 2 +- Pman.Dialog.CmsBlog.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index 5b74fd9f..6309c3fd 100644 --- a/Pman.Dialog.CmsBlog.bjs +++ b/Pman.Dialog.CmsBlog.bjs @@ -98,7 +98,7 @@ { "listeners" : { "expanded" : "function (_self)\n{\n var id = _this.form.findField('id').getValue() * 1;\n \n if(id < 1){\n Roo.MessageBox.alert('Error', 'Save first');\n this.collapse();\n return;\n }\n \n var w = Roo.lib.Dom.getViewWidth();\n var h = Roo.lib.Dom.getViewHeight();\n \n _self.resizeTo.defer(110, _self,[ w-400, h-350] );\n \n _this.panel.region.collapse();\n \n}", - "collapsed" : "function (_self)\n{\n if(_this.trform && _this.trform.isDirty()){\n _this.trform.reset();\n }\n \n if(_this.trform1 && _this.trform1.isDirty()){\n _this.trform1.reset();\n }\n \n if(_this.trform2 && _this.trform2.isDirty()){\n _this.trform2.reset();\n }\n \n if(_this.trform3 && _this.trform3.isDirty()){\n _this.trform3.reset();\n }\n \n}", + "collapsed" : "function (_self)\n{\n if(_this.trform && _this.trform.isDirty()){\n _this.trform.reset();\n }\n \n if(_this.trform1 && _this.trform1.isDirty()){\n _this.trform1.reset();\n }\n \n if(_this.trform2 && _this.trform2.isDirty()){\n _this.trform2.reset();\n }\n \n if(_this.trform3 && _this.trform3.isDirty()){\n _this.trform3.reset();\n }\n \n \n}", "beforecollapse" : "function (_self)\n{\n if(!_this.trform || !_this.trform1 || !_this.trform2){\n return true;\n }\n \n if(\n !_this.trform.isDirty() &&\n !_this.trform1.isDirty() &&\n !_this.trform2.isDirty() &&\n !_this.trform3.isDirty()\n ) {\n return true;\n }\n \n Roo.MessageBox.confirm(\n \"Confirm\", \n \"Do you want to save the translation\",\n function(res) {\n if(res != 'yes') {\n _self.collapse(true, true);\n return true;\n }\n \n return false;\n }\n );\n \n return false;\n}" }, "collapsedTitle" : "Translations", diff --git a/Pman.Dialog.CmsBlog.js b/Pman.Dialog.CmsBlog.js index af743ce9..31e53756 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -352,6 +352,7 @@ Pman.Dialog.CmsBlog = { _this.trform3.reset(); } + }, expanded : function (_self) { -- 2.39.2