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 'passwordRequest_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({
49 buttonPosition : 'center',
50 cls : 'enable-overflow roo-bootstrap-dialog',
51 title : _this._strings['62dd7b9a2b2efd33b8074f88f8356d12'] /* Management account recovery */,
53 show : function (_self)
55 _this.dialog.el.select('.modal-content', true).first().unmask();
59 '|xns' : 'Roo.bootstrap',
63 html : _this._strings['10ac3d04253ef7e1ddc73e6091c0cd55'] /* Next */,
67 click : function (_self, e)
69 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
70 _this.form.doAction('submit');
74 '|xns' : 'Roo.bootstrap'
81 '|xns' : 'Roo.bootstrap',
87 '|xns' : 'Roo.bootstrap',
94 style : 'padding: 10px;',
95 url : baseURL + '/Login',
97 actioncomplete : function (_self, action) {
99 if (action.type == 'setdata') {
100 this.findField('passwordRequest').setValue(_this.data.email);
101 _this.form.clearInvalid();
105 if (action.type == 'load') {
109 if (action.type =='submit') {
113 if (_this.callback) {
114 _this.callback.call(_this, action.result);
123 actionfailed : function (_self, action) {
125 Roo.log('action fail?');
128 _this.dialog.el.select('.modal-content', true).first().unmask();
130 var err = 'Fill in all the required fields';
132 if (typeof(action) != 'undefined' && action.failureType == 'server') {
133 err = action.result.errorMsg;
136 Roo.bootstrap.MessageBox.alert('Error', err);
138 render : function (_self) {
143 '|xns' : 'Roo.bootstrap',
148 '|xns' : 'Roo.bootstrap',
154 '|xns' : 'Roo.bootstrap',
159 fieldLabel : _this._strings['6832ac593617c3e5f61c82a20b0d9a3a'] /* Enter your email address */,
160 indicatorpos : 'right',
161 name : 'passwordRequest',
163 specialkey : function (_self, e)
165 if(e.getKey() == 13){
166 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
167 _this.form.doAction('submit');
172 '|xns' : 'Roo.bootstrap'
180 inputType : 'hidden',
181 name : 'ForgetPassword',
184 '|xns' : 'Roo.bootstrap'
196 Roo.apply(Pman.Dialog.BAdminForgotPassword, Pman.Dialog.BAdminForgotPassword.prototype);