X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreProject.bjs;h=118820e65a2a25768384afdfac80cad8b16244fb;hp=926e967d40142cdf74f0a4e1ec74b3cc15f1bbc4;hb=a1a3ecba68d2fedabc8203e88b40759401d7472d;hpb=e61b25c234752f11075ad2d8558793124ea7c813 diff --git a/Pman.Dialog.CoreProject.bjs b/Pman.Dialog.CoreProject.bjs index 926e967d..118820e6 100644 --- a/Pman.Dialog.CoreProject.bjs +++ b/Pman.Dialog.CoreProject.bjs @@ -53,6 +53,7 @@ }, "items" : [ { + "Boolean modal" : true, "collapsible" : false, "xtype" : "LayoutDialog", "title" : "Edit / Create Projects", @@ -74,10 +75,10 @@ "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'", + "$ url" : "baseURL + '/Roo/core_project'", "method" : "POST", "xtype" : "Form", "style" : "margin:10px;",