Pman.Tab.BAdminCoreEnum.bjs
authoredward <edward@roojs.com>
Tue, 6 Feb 2018 09:39:42 +0000 (17:39 +0800)
committeredward <edward@roojs.com>
Tue, 6 Feb 2018 09:39:42 +0000 (17:39 +0800)
Pman.Tab.BAdminCoreEnum.js

Pman.Tab.BAdminCoreEnum.bjs
Pman.Tab.BAdminCoreEnum.js

index 9ae3b9f..0c7099c 100644 (file)
       },
       {
        "listeners" : {
-        "activate" : "function (_self)\n{\n    if (_this.option_grid) {\n        _this.option_grid.store.load({});\n//        _this.option_grid.footer.onClick('first');\n    }\n}",
+        "activate" : "function (_self)\n{\n    _this.edit_btn.hide();\n    _this.delete_btn.hide();\n    \n    if (_this.option_grid) {\n        _this.option_grid.store.load({});\n    }\n}",
         "render" : "function (_self)\n{\n    _this.option_panel = _self;\n}"
        },
        "Boolean fitContainer" : true,
index 8cac87d..c3fd304 100644 (file)
@@ -259,9 +259,11 @@ Pman.Tab.BAdminCoreEnum = new Roo.XComponent({
       listeners : {
        activate : function (_self)
         {
+            _this.edit_btn.hide();
+            _this.delete_btn.hide();
+            
             if (_this.option_grid) {
                 _this.option_grid.store.load({});
-        //        _this.option_grid.footer.onClick('first');
             }
         },
        render : function (_self)