X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreEnum.bjs;h=523e6c97408ba8a0349b8972ac3deec31c5f6be6;hb=ebbeacd8cf090df34f54dbb0d2be75e74d2d83df;hp=c70bfc98bc4c6f7113cd0cf547adeab34ac7380b;hpb=cf091791bf4ef93bb94020622800238ae2a6fa3f;p=Pman.Core diff --git a/Pman.Dialog.CoreEnum.bjs b/Pman.Dialog.CoreEnum.bjs index c70bfc98..523e6c97 100644 --- a/Pman.Dialog.CoreEnum.bjs +++ b/Pman.Dialog.CoreEnum.bjs @@ -36,7 +36,7 @@ "items": [ { "listeners": { - "|actioncomplete": "function (_self, action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n \n // this is 'new' only!!!\n\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", + "|actioncomplete": "function (_self, action)\n{\n if (action.type == 'setdata') {\n if(_this.data.id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type == 'submit' ) {\n _this.dialog.el.unmask();\n _this.dialog.hide();\n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n }\n}\n", "|rendered": "function (form)\n{\n _this.form = form;\n}" }, "method": "POST",