Pman.Dialog.CoreCompanies.bjs
[Pman.Core] / Pman.Dialog.CoreCompanies.bjs
index 12d0439..a22f015 100644 (file)
@@ -44,7 +44,7 @@
                             "fileUpload": true,
                             "labelWidth": 160,
                             "xtype": "Form",
-                            "|url": "baseURL + '/Roo/Person.php'",
+                            "|url": "baseURL + '/Roo/Companies.php'",
                             "|xns": "Roo.form",
                             "items": [
                                 {
                     ]
                 },
                 {
+                    "listeners": {
+                        "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
+                    },
                     "*prop": "buttons[]",
                     "text": "Cancel",
                     "xtype": "Button",
                     "|xns": "Roo"
                 },
                 {
+                    "listeners": {
+                        "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
+                    },
                     "*prop": "buttons[]",
                     "text": "Save",
                     "xtype": "Button",