X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Tab.AdminLogs.js;h=4ca7252b6f6d288d8c1a1f1ad093479c5400791a;hp=30f0e6cdd4a08172586664637e1e1540a959010d;hb=HEAD;hpb=8fe12cb7ea2c203391837f15e98a62fa6f99ae0f diff --git a/Pman.Tab.AdminLogs.js b/Pman.Tab.AdminLogs.js index 30f0e6c..4ca7252 100644 --- a/Pman.Tab.AdminLogs.js +++ b/Pman.Tab.AdminLogs.js @@ -2,63 +2,53 @@ // Auto generated file - created by app.Builder.js- do not edit directly (at present!) - - -// register the module first -Pman.on('beforeload', function() -{ - Pman.register({ - part : ["Admin","Logs"], - modKey : '001-Pman.Tab.AdminLogs', - module : Pman.Tab.AdminLogs, - region : 'center', - parent : Pman, - name : "Logs", - disabled : false, - permname: '' - }); -}); - -Pman.Tab.AdminLogs = new Roo.util.Observable({ - - panel : false, - disabled : false, - parentLayout: false, - - add : function(parentLayout, region) - { - - var _this = this; - this.parentLayout = parentLayout; - - this.panel = parentLayout.addxtype({ - xtype: 'NestedLayoutPanel', - xns: Roo, - listeners : { - activate : function (_self) - { - var cr = this.layout.getRegion('center'); - if (cr) { - cr.showPanel(cr.activePanel); - } - } - }, - background : true, - fitToFrame : true, - region : 'center', - title : "Logs", - layout : { - xtype: 'BorderLayout', - xns: Roo, - center : { - xtype: 'LayoutRegion', - xns: Roo, - titlebar : false, - tabPosition : 'top' - } - } - }); - this.layout = this.panel.layout; - +Roo.namespace('Pman.Tab'); + +Pman.Tab.AdminLogs = new Roo.XComponent({ + + _strings : { + 'b2d37ae1cedf42ff874289b721860af2' :"Logs" + }, + + part : ["Admin", "Logs" ], + order : '999-Pman.Tab.AdminLogs', + region : 'center', + parent : 'Pman', + name : "Logs", + disabled : false, + permname : '', + _tree : function(_data) + { + var _this = this; + var MODULE = this; + return { + xtype : 'NestedLayoutPanel', + background : true, + fitToFrame : true, + region : 'center', + title : _this._strings['b2d37ae1cedf42ff874289b721860af2'] /* Logs */, + listeners : { + activate : function (_self) + { + var cr = this.layout.getRegion('center'); + if (cr) { + cr.showPanel(cr.activePanel); + } + } + }, + xns : Roo, + '|xns' : 'Roo', + layout : { + xtype : 'BorderLayout', + xns : Roo, + '|xns' : 'Roo', + center : { + xtype : 'LayoutRegion', + tabPosition : 'top', + titlebar : false, + xns : Roo, + '|xns' : 'Roo' } + } + }; } });