Pman.Dialog.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsBlog.bjs
index 07cf70c..2e2d5e0 100644 (file)
           {
            "listeners" : {
             "|actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n \n    Pman.standardActionFailed(_self, action);\n}\n",
-            "|actioncomplete" : "function (_self, action)\n{\n    if (action.type =='submit') {\n        return;\n    }\n    \n    if (action.type == 'setdata') {\n        _this.trform.addForm(_this.trform1);\n        _this.trform.addForm(_this.trform2);\n        _this.trform.addForm(_this.trform3);\n        \n        _this.trform.showHide();\n        \n        if ( _this.data.id) {\n            \n                this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n        } else {\n            this.trpanel.el.mask(\"save first\");\n        }\n\n       return;\n      \n    }\n    \n    if (action.type == 'load') {\n//        _this.dialog.el.unmask();\n        this.showHide();\n        \n        _this.trform1.findField('body').originalValue = _this.trform1.findField('body').getValue();\n       _this.trform2.findField('extended').originalValue = _this.trform2.findField('extended').getValue();\n       _this.trform3.findField('keywords').originalValue = _this.trform3.findField('keywords').getValue();\n       _this.trform3.findField('descriptions').originalValue = _this.trform3.findField('descriptions').getValue();\n        \n        return;\n    }\n}\n",
+            "|actioncomplete" : "function (_self, action)\n{\n    if (action.type =='submit') {\n        return;\n    }\n    \n    if (action.type == 'setdata') {\n        _this.trform.addForm(_this.trform1);\n        _this.trform.addForm(_this.trform2);\n        _this.trform.addForm(_this.trform3);\n        \n        if ( _this.data.id) {\n            \n                this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n        } else {\n            this.trpanel.el.mask(\"save first\");\n        }\n\n       return;\n      \n    }\n    \n    if (action.type == 'load') {\n//        _this.dialog.el.unmask();\n        this.showHide();\n        \n        _this.trform1.findField('body').originalValue = _this.trform1.findField('body').getValue();\n       _this.trform2.findField('extended').originalValue = _this.trform2.findField('extended').getValue();\n       _this.trform3.findField('keywords').originalValue = _this.trform3.findField('keywords').getValue();\n       _this.trform3.findField('descriptions').originalValue = _this.trform3.findField('descriptions').getValue();\n        \n        return;\n    }\n}\n",
             "|rendered" : "function (_self)\n{\n    _this.trform = _self;\n}\n"
            },
            "labelAlign" : "right",