Pman.Tab.BAdminCompany.bjs
authorKH Lau <khlau@roojs.com>
Wed, 20 Sep 2017 02:26:59 +0000 (10:26 +0800)
committerKH Lau <khlau@roojs.com>
Wed, 20 Sep 2017 02:26:59 +0000 (10:26 +0800)
Pman.Tab.BAdminCompany.js

Pman.Tab.BAdminCompany.bjs
Pman.Tab.BAdminCompany.js

index 3e3fbb4..e5ce61d 100644 (file)
@@ -70,7 +70,7 @@
              "items" : [
               {
                "listeners" : {
-                "click" : "function (_self, e)\n{\n    if (!_this.dialog) {\n        return;\n        }\n\n    _this.dialog.show({}, function() {\n        if (_this.table) {\n            _this.table.store.load({});\n        }\n    }); \n    //_this.dialog.modal.setTitle('Add Company');\n    //_this.dialog.form.reset();\n\n}"
+                "click" : "function (_self, e)\n{\n    if (!_this.dialog) {\n        return;\n        }\n\n    _this.dialog.show({}, function() {\n        if (_this.table) {\n            _this.table.footer.onClick('first');\n            //_this.table.store.load({});\n        }\n    }); \n    //_this.dialog.modal.setTitle('Add Company');\n    //_this.dialog.form.reset();\n\n}"
                },
                "String weight" : "primary",
                "xtype" : "Button",
index 9d08a63..492046d 100644 (file)
@@ -107,7 +107,8 @@ Pman.Tab.BAdminCompany = new Roo.XComponent({
                
                    _this.dialog.show({}, function() {
                        if (_this.table) {
-                           _this.table.store.load({});
+                           _this.table.footer.onClick('first');
+                           //_this.table.store.load({});
                        }
                    }); 
                    //_this.dialog.modal.setTitle('Add Company');