Pman.Dialog.CoreCompanies.bjs
authorChris <chris@roojs.com>
Wed, 12 Sep 2012 05:46:32 +0000 (13:46 +0800)
committerChris <chris@roojs.com>
Wed, 12 Sep 2012 05:46:32 +0000 (13:46 +0800)
Pman.Dialog.CoreCompanies.js

Pman.Dialog.CoreCompanies.bjs
Pman.Dialog.CoreCompanies.js

index 3f32faf..3570330 100644 (file)
                     "xtype": "ContentPanel",
                     "items": [
                         {
+                            "listeners": {
+                                "actionfailed": "function(f, act) {\n    _this.dialog.el.unmask();\n    // error msg???\n    Pman.standardActionFailed(f,act);\n              \n}",
+                                "actioncomplete": "function (_self, action)\n{\n\n}"
+                            },
                             "fileUpload": true,
                             "labelWidth": 150,
                             "xtype": "Form",
index fdfc88d..ccd320b 100644 (file)
@@ -47,6 +47,18 @@ Pman.Dialog.CoreCompanies = {
                         {
                             xtype: 'Form',
                             xns: Roo.form,
+                            listeners : {
+                                actionfailed : function(f, act) {
+                                    _this.dialog.el.unmask();
+                                    // error msg???
+                                    Pman.standardActionFailed(f,act);
+                                              
+                                },
+                                actioncomplete : function (_self, action)
+                                {
+                                
+                                }
+                            },
                             fileUpload : true,
                             labelWidth : 150
                         }