Pman.Dialog.CmsCategory.bjs
authorAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 05:09:09 +0000 (13:09 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 21 Sep 2010 05:09:09 +0000 (13:09 +0800)
Pman.Dialog.CmsCategory.bjs

index ab93434..ef629ab 100644 (file)
@@ -46,7 +46,7 @@
                         {
                             "listeners": {
                                 "|actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
-                                "|actioncomplete": "function (_self, action)\n{\n   \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n    if (action.type = 'setdata') {\n    \n\n    \n       _this.grid.getDataSource().load();\n    \n    }\n}\n",
+                                "|actioncomplete": "function (_self, action)\n{\n   \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n    \n    if (_this.data.id) {\n           _this.dialog.el.mask(\"Loading\");\n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n            return;\n       }\n       _this.imageView.loadImages();\n       return;\n    }\n    if (action.type == 'load') {\n    \n    if (action.type = 'setdata') {\n    \n\n    \n       _this.grid.getDataSource().load();\n    \n    }\n}\n",
                                 "|rendered": "function (_self)\n{\n    _this.form = _self;\n}\n"
                             },
                             "method": "POST",