1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 Pman.Tab = new Roo.XComponent({
10 '0323de4f66a1700e2173e9bcdce02715' :"Logout",
11 '617114bd6ef10884239510062dffa933' :"Your password has been changed",
12 '8f1e77e0d2be21da93cd4d9a939148f7' :"Change Password",
13 '24efa7ee4511563b16144f39706d594f' :"Notice"
16 part : ["BAdmin", "Tab" ],
17 order : '001-Pman.Tab',
20 name : "unnamed module",
23 _tree : function(_data)
31 xns : Roo.bootstrap.layout,
32 '|xns' : 'Roo.bootstrap.layout',
35 alwaysShowTabs : true,
37 xns : Roo.bootstrap.layout,
38 '|xns' : 'Roo.bootstrap.layout'
45 xns : Roo.bootstrap.layout,
46 '|xns' : 'Roo.bootstrap.layout'
53 xns : Roo.bootstrap.panel,
54 '|xns' : 'Roo.bootstrap.panel',
57 xtype : 'NavHeaderbar',
59 brand : '<img cls="header-logo" src="' + (appLogo ? appLogo : Roo.BLANK_IMAGE_URL) + '">',
60 cls : 'headroom animated slideDown no-srButton',
61 desktopCenter : false,
63 position : 'fixed-top',
65 style : 'padding-bottom:0px;',
67 '|xns' : 'Roo.bootstrap',
72 style : 'margin-top:0px;margin-bottom:0px;',
75 '|xns' : 'Roo.bootstrap',
79 html : Pman.Login.authUser.name,
81 preventDefault : true,
83 render : function (_self)
85 this.el.setVisibilityMode(Roo.Element.DISPLAY);
93 '|xns' : 'Roo.bootstrap',
99 show : function (_self)
101 var width = Roo.lib.Dom.getViewWidth();
103 var xy = this.el.getXY();
104 this.el.setStyle('position', 'absolute');
109 this.el.setStyle('width', width + 'px');
114 '|xns' : 'Roo.bootstrap',
120 preventDefault : true,
122 '|xns' : 'Roo.bootstrap',
127 '|xns' : 'Roo.bootstrap',
134 '|xns' : 'Roo.bootstrap',
139 '|xns' : 'Roo.bootstrap',
144 style : 'color:#333;text-align:right',
146 render : function (_self)
149 this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';
154 '|xns' : 'Roo.bootstrap'
159 style : 'color:#333;',
161 render : function (_self)
164 this.el.dom.innerHTML = Pman.Login.authUser.email;
169 '|xns' : 'Roo.bootstrap'
183 preventDefault : true,
185 '|xns' : 'Roo.bootstrap',
190 '|xns' : 'Roo.bootstrap',
198 '|xns' : 'Roo.bootstrap',
202 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
203 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
204 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
205 style : 'text-transform:none;',
209 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
215 Hydra.Dialog.ChangePassword.show({}, function(res) {
216 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
221 '|xns' : 'Roo.bootstrap'
229 style : 'text-align: right;',
232 '|xns' : 'Roo.bootstrap',
236 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
237 style : 'text-transform:none;',
241 window.onbeforeunload = false;
243 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
248 url : baseURL + '/Login',
255 location.href = baseURL;
262 '|xns' : 'Roo.bootstrap'