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.BAdminPasswordReset= function() {}
8 Roo.apply(Pman.Dialog.BAdminPasswordReset.prototype, {
11 'acd43bedab51b6704bf10d9ac136a032' :"Reset management password",
12 '10ac3d04253ef7e1ddc73e6091c0cd55' :"Next",
13 'bbddd6ba0948d79e55486e615a265b56' :"Enter your new password",
14 'c4ca4238a0b923820dcc509a6f75849b' :"1",
15 '6d70a993714d2699e1d30e03d2753850' :"Please enter again to confirm"
18 'ResetPassword_value' : 'c4ca4238a0b923820dcc509a6f75849b' /* 1 */ ,
19 'ok_html' : '10ac3d04253ef7e1ddc73e6091c0cd55' /* Next */ ,
20 'password2_fieldLabel' : '6d70a993714d2699e1d30e03d2753850' /* Please enter again to confirm */ ,
21 'password1_fieldLabel' : 'bbddd6ba0948d79e55486e615a265b56' /* Enter your new password */
27 show : function(data, cb)
35 this.dialog.show(this.data._el);
38 this.form.setValues(data);
39 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
47 this.dialog = Roo.factory({
50 buttonPosition : 'center',
51 cls : 'enable-overflow roo-bootstrap-dialog',
52 title : _this._strings['acd43bedab51b6704bf10d9ac136a032'] /* Reset management password */,
54 show : function (_self)
56 _this.dialog.el.select('.modal-content', true).first().unmask();
57 _this.form.findField('password1').focus();
61 '|xns' : 'Roo.bootstrap',
65 html : _this._strings['10ac3d04253ef7e1ddc73e6091c0cd55'] /* Next */,
69 click : function (_self, e)
71 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
72 _this.form.doAction('submit');
76 '|xns' : 'Roo.bootstrap'
83 '|xns' : 'Roo.bootstrap',
89 '|xns' : 'Roo.bootstrap',
96 style : 'padding: 10px;',
97 url : baseURL + '/Login',
98 verifyCheckSum : function()
103 url: baseURL + '/Login',
105 mask : 'Verifying...',
107 id : _this.form.findField('id').getValue(),
108 ts : _this.form.findField('ts').getValue(),
109 key : _this.form.findField('key').getValue(),
112 success : function(res) {
118 actioncomplete : function (_self, action) {
120 if (action.type == 'setdata') {
122 var pathname = window.location.pathname.split('PasswordReset/');
124 if(typeof(pathname[1]) == 'undefined'){
128 var data = pathname[1].split('/');
130 if(data.length != 3){
132 Roo.bootstrap.MessageBox.alert('Sorry', 'Account reset link is not correct - please try again or paste the link correctly');
136 _this.form.findField('id').setValue(data[0]);
137 _this.form.findField('ts').setValue(data[1]);
138 _this.form.findField('key').setValue(data[2]);
140 _this.form.clearInvalid();
142 _this.form.verifyCheckSum();
146 if (action.type == 'load') {
150 if (action.type =='submit') {
154 if (_this.callback) {
155 _this.callback.call(_this, action.result);
164 actionfailed : function (_self, action) {
166 Roo.log('action fail?');
169 _this.dialog.el.select('.modal-content', true).first().unmask();
171 var err = 'Fill in all the required fields';
173 if (typeof(action) != 'undefined' && action.failureType == 'server') {
174 err = action.result.errorMsg;
177 Roo.bootstrap.MessageBox.alert('Error', err);
179 render : function (_self) {
184 '|xns' : 'Roo.bootstrap',
189 '|xns' : 'Roo.bootstrap',
195 '|xns' : 'Roo.bootstrap',
200 fieldLabel : _this._strings['bbddd6ba0948d79e55486e615a265b56'] /* Enter your new password */,
201 inputType : 'password',
204 specialkey : function (_self, e)
206 if(e.getKey() == 13){
207 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
208 _this.form.doAction('submit');
213 '|xns' : 'Roo.bootstrap'
218 fieldLabel : _this._strings['6d70a993714d2699e1d30e03d2753850'] /* Please enter again to confirm */,
219 inputType : 'password',
222 specialkey : function (_self, e)
224 if(e.getKey() == 13){
225 _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
226 _this.form.doAction('submit');
231 '|xns' : 'Roo.bootstrap'
235 inputType : 'hidden',
238 '|xns' : 'Roo.bootstrap'
242 inputType : 'hidden',
245 '|xns' : 'Roo.bootstrap'
249 inputType : 'hidden',
252 '|xns' : 'Roo.bootstrap'
256 inputType : 'hidden',
257 name : 'ResetPassword',
260 '|xns' : 'Roo.bootstrap'
276 Roo.apply(Pman.Dialog.BAdminPasswordReset, Pman.Dialog.BAdminPasswordReset.prototype);