Pman.Dialog.CmsBlog.bjs
authorEdward <edward@roojs.com>
Mon, 3 Sep 2018 04:38:00 +0000 (12:38 +0800)
committerEdward <edward@roojs.com>
Mon, 3 Sep 2018 04:38:00 +0000 (12:38 +0800)
Pman.Dialog.CmsBlog.js

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

index 1117536..68ea631 100644 (file)
@@ -98,6 +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    \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",
index b297a4c..2e54750 100644 (file)
@@ -332,6 +332,10 @@ Pman.Dialog.CmsBlog = {
            
            return false;
        },
+      collapsed : function (_self)
+       {
+           
+       },
       expanded : function (_self)
        {
            var id = _this.form.findField('id').getValue() * 1;