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"></span>',
81 preventDefault : true,
82 updateBadge : function() { },
84 render : function (_self)
86 _this.user_box = this;
88 this.el.setVisibilityMode(Roo.Element.DISPLAY);
95 '|xns' : 'Roo.bootstrap',
101 show : function (_self)
103 var width = Roo.lib.Dom.getViewWidth();
105 var xy = this.el.getXY();
106 this.el.setStyle('position', 'absolute');
111 this.el.setStyle('width', width + 'px');
116 '|xns' : 'Roo.bootstrap',
122 preventDefault : true,
124 '|xns' : 'Roo.bootstrap',
129 '|xns' : 'Roo.bootstrap',
136 '|xns' : 'Roo.bootstrap',
141 '|xns' : 'Roo.bootstrap',
146 style : 'color:#333;text-align:right',
148 render : function (_self)
151 this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';
156 '|xns' : 'Roo.bootstrap'
161 style : 'color:#333;text-align:right',
163 render : function (_self)
166 this.el.dom.innerHTML = Pman.Login.authUser.email;
171 '|xns' : 'Roo.bootstrap'
185 preventDefault : true,
187 '|xns' : 'Roo.bootstrap',
192 '|xns' : 'Roo.bootstrap',
200 '|xns' : 'Roo.bootstrap',
204 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
205 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
206 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
207 style : 'text-transform:none;',
214 Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {
215 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;
245 url : baseURL + '/Login',
252 location.href = baseURL;
259 '|xns' : 'Roo.bootstrap'