X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreProject.bjs;h=5bc2069945c330bce9ca368217cc0d9198755705;hb=6172f6004eac181317b70b3433b204740ab62a04;hp=926e967d40142cdf74f0a4e1ec74b3cc15f1bbc4;hpb=e61b25c234752f11075ad2d8558793124ea7c813;p=Pman.Core diff --git a/Pman.Dialog.CoreProject.bjs b/Pman.Dialog.CoreProject.bjs index 926e967d..5bc20699 100644 --- a/Pman.Dialog.CoreProject.bjs +++ b/Pman.Dialog.CoreProject.bjs @@ -74,7 +74,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 return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n \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", + "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n if (_this.data.id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n }\n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n \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", "|rendered" : "function (form)\n{\n _this.form= form;\n}\n" }, "$ url" : "baseURL + '/Roo/Projects.php'",