1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.BAdminForgotPassword= function() {}
8 Roo.apply(Pman.Dialog.BAdminForgotPassword.prototype, {
11 '6832ac593617c3e5f61c82a20b0d9a3a' :"Enter your email address",
12 '62dd7b9a2b2efd33b8074f88f8356d12' :"Management account recovery",
13 '10ac3d04253ef7e1ddc73e6091c0cd55' :"Next",
14 'c4ca4238a0b923820dcc509a6f75849b' :"1"
17 'ok_html' : '10ac3d04253ef7e1ddc73e6091c0cd55' /* Next */ ,
18 'ForgetPassword_value' : 'c4ca4238a0b923820dcc509a6f75849b' /* 1 */ ,
19 'username_fieldLabel' : '6832ac593617c3e5f61c82a20b0d9a3a' /* Enter your email address */
25 show : function(data, cb)
33 this.dialog.show(this.data._el);
36 this.form.setValues(data);
37 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
45 this.dialog = Roo.factory({
48 buttonPosition : 'center',
49 cls : 'enable-overflow roo-bootstrap-dialog',
50 title : _this._strings['62dd7b9a2b2efd33b8074f88f8356d12'] /* Management account recovery */,
52 show : function (_self)
54 _this.dialog.el.select('.modal-content', true).first().unmask();
58 '|xns' : 'Roo.bootstrap',
62 html : _this._strings['10ac3d04253ef7e1ddc73e6091c0cd55'] /* Next */,
66 click : function (_self, e)
68 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
69 _this.form.doAction('submit');
73 '|xns' : 'Roo.bootstrap'
80 '|xns' : 'Roo.bootstrap',
86 '|xns' : 'Roo.bootstrap',
93 style : 'padding: 10px;',
94 url : baseURL + '/Login',
96 actioncomplete : function (_self, action) {
98 if (action.type == 'setdata') {
100 _this.form.clearInvalid();
104 if (action.type == 'load') {
108 if (action.type =='submit') {
112 if (_this.callback) {
113 _this.callback.call(_this, action.result);
122 actionfailed : function (_self, action) {
124 Roo.log('action fail?');
127 _this.dialog.el.select('.modal-content', true).first().unmask();
129 var err = 'Fill in all the required fields';
131 if (typeof(action) != 'undefined' && action.failureType == 'server') {
132 err = action.result.errorMsg;
135 Roo.bootstrap.MessageBox.alert('Error', err);
137 render : function (_self) {
142 '|xns' : 'Roo.bootstrap',
147 '|xns' : 'Roo.bootstrap',
153 '|xns' : 'Roo.bootstrap',
158 fieldLabel : _this._strings['6832ac593617c3e5f61c82a20b0d9a3a'] /* Enter your email address */,
159 indicatorpos : 'right',
162 specialkey : function (_self, e)
164 if(e.getKey() == 13){
165 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
166 _this.form.doAction('submit');
171 '|xns' : 'Roo.bootstrap'
179 inputType : 'hidden',
180 name : 'ForgetPassword',
183 '|xns' : 'Roo.bootstrap'
195 Roo.apply(Pman.Dialog.BAdminForgotPassword, Pman.Dialog.BAdminForgotPassword.prototype);