Pman.Tab.AdminLogEvents.bjs
authorEdward <edward@roojs.com>
Thu, 2 Apr 2015 06:57:13 +0000 (14:57 +0800)
committerEdward <edward@roojs.com>
Thu, 2 Apr 2015 06:57:13 +0000 (14:57 +0800)
Pman.Tab.AdminLogEvents.js

Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js

index e940b92..01e8029 100644 (file)
             },
             {
              "listeners" : {
-              "|render" : "function (_self)\n{\n    _this.tableSel = _self;\n  \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    this.el.hide();\n}",
+              "|render" : "function (_self)\n{\n    _this.tableSel = _self;\n  \n    this.el.setVisibilityMode(Roo.Element.DISPLAY);\n    \n    if(\n        typeof(uiConfig) == 'undefined' || \n        typeof(uiConfig.events_person_table) == 'undefined' || \n        !uiConfig.events_person_table.length\n    ){\n        this.el.hide();\n    }\n}",
               "|select" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick('first');\n}"
              },
              "listWidth" : 300,
index 7146907..55563fd 100644 (file)
@@ -401,7 +401,13 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
               
                 this.el.setVisibilityMode(Roo.Element.DISPLAY);
                 
-                this.el.hide();
+                if(
+                    typeof(uiConfig) == 'undefined' || 
+                    typeof(uiConfig.events_person_table) == 'undefined' || 
+                    !uiConfig.events_person_table.length
+                ){
+                    this.el.hide();
+                }
             },
            select : function (combo, record, index)
             {