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="' + 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 + '<span style="margin-left: 5px;" class="badge badge-primary">0</span>',
81 preventDefault : true,
83 render : function (_self)
85 _this.user_box = this;
87 this.el.setVisibilityMode(Roo.Element.DISPLAY);
94 '|xns' : 'Roo.bootstrap',
100 show : function (_self)
102 var width = Roo.lib.Dom.getViewWidth();
104 var xy = this.el.getXY();
105 this.el.setStyle('position', 'absolute');
110 this.el.setStyle('width', width + 'px');
115 '|xns' : 'Roo.bootstrap',
121 preventDefault : true,
123 '|xns' : 'Roo.bootstrap',
128 '|xns' : 'Roo.bootstrap',
135 '|xns' : 'Roo.bootstrap',
140 '|xns' : 'Roo.bootstrap',
145 style : 'color:#333;text-align:right',
147 render : function (_self)
150 this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';
155 '|xns' : 'Roo.bootstrap'
160 style : 'color:#333;text-align:right',
162 render : function (_self)
165 this.el.dom.innerHTML = Pman.Login.authUser.email;
170 '|xns' : 'Roo.bootstrap'
184 preventDefault : true,
186 '|xns' : 'Roo.bootstrap',
191 '|xns' : 'Roo.bootstrap',
199 '|xns' : 'Roo.bootstrap',
203 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
204 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
205 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
206 style : 'text-transform:none;',
213 Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {
214 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
220 '|xns' : 'Roo.bootstrap'
228 style : 'text-align: right;',
231 '|xns' : 'Roo.bootstrap',
235 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
236 style : 'text-transform:none;',
240 window.onbeforeunload = false;
244 url : baseURL + '/Login',
251 location.href = baseURL;
258 '|xns' : 'Roo.bootstrap'