Pman.Tab.AdminLogs.js
[Pman.Admin] / Pman.Tab.AdminLogs.js
index fe03ca0..c0ce542 100644 (file)
@@ -1,64 +1,54 @@
-//<script type="text/javascript"> 
-       
-// Auto generated file build Builder
+//<script type="text/javascript">
 
-            
-       
-// register the module first       
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+
+
+// register the module first
 Pman.on('beforeload', function()
 {
-
-    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {
-        return;
-    }
-    
-    
-    if (!Pman.hasPerm('Admin.Logs', 'S')) {
-        return;
-    }
-    
     Pman.register({
-        modKey : '901-pman_tab_adminlogs',
+        modKey : '999-Pman.Tab.AdminLogs',
         module : Pman.Tab.AdminLogs,
         region : 'center',
         parent : Pman,
-        name : "Logs"
+        name : "Logs",
+        disabled : false, 
+        permname: '' 
     });
 });
 
-Pman.Tab.AdminLogs = {
-    
+Pman.Tab.AdminLogs = new Roo.util.Observable({
+
     panel : false,
     disabled : false,
     parentLayout:  false,
 
     add : function(parentLayout, region)
     {
-        
-        if (this.disabled) {
-            return;
-        }
+
         var _this = this;
         this.parentLayout = parentLayout;
-        
-        this.panel = this.parentLayout.addxtype({
-            xtype : 'NestedLayoutPanel',
+
+        this.panel = parentLayout.addxtype({
+            xtype: 'NestedLayoutPanel',
+            xns: Roo,
             background : true,
             fitToFrame : true,
             region : 'center',
             title : "Logs",
             layout : {
-                xtype : 'BorderLayout',
+                xtype: 'BorderLayout',
+                xns: Roo,
                 center : {
+                    xtype: 'LayoutRegion',
+                    xns: Roo,
                     titlebar : false,
                     tabPosition : 'top'
                 }
             }
         });
-
         this.layout = this.panel.layout;
 
-        
-        
     }
-}
+});