X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=blobdiff_plain;f=Pman.Dialog.AdminPerson.js;h=ec87fa0b1812f5ef7f316655ae8038fe69072172;hp=1b5cc689430489a5d977a363aebdcd94c64cdf0d;hb=HEAD;hpb=612329e8e8fc61cb4ec0ba0d3e31ecb271c36827 diff --git a/Pman.Dialog.AdminPerson.js b/Pman.Dialog.AdminPerson.js index 1b5cc68..ec87fa0 100644 --- a/Pman.Dialog.AdminPerson.js +++ b/Pman.Dialog.AdminPerson.js @@ -35,8 +35,9 @@ Pman.Dialog.AdminPerson = { 'role_fieldLabel' : '8a25a3ae30ab6e8ceb5b8c4009a3336f' /* Role / Position */ , 'name_fieldLabel' : '49ee3087348e8d44e1feda1917443987' /* Name */ , 'office_id_name_emptyText' : 'be5f40c0d2692cf4e9f8be8d389737a5' /* Department / Office */ , + 'passwd2_fieldLabel' : '315fce99b77b7f392bf68d5eb14f88c7' /* Password (type again to confirm) */ , 'phone_fieldLabel' : 'bcc254b55c4a1babdf1dcb82c207506b' /* Phone */ , - 'passwd1_fieldLabel' : '315fce99b77b7f392bf68d5eb14f88c7' /* Password (type again to confirm) */ , + 'passwd1_fieldLabel' : '3544848f820b9d94a3f3871a382cf138' /* New password */ , 'office_id_name_fieldLabel' : 'be5f40c0d2692cf4e9f8be8d389737a5' /* Department / Office */ , 'office_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , 'email_fieldLabel' : 'ce8ae9da5b7cd6c3df2929543a9af92d' /* Email */ , @@ -102,25 +103,25 @@ Pman.Dialog.AdminPerson = { click : function (_self, e) { // do some checks? - if (this.form.findField('passwd1')) { + if (_this.form.findField('passwd1')) { - var p1 = this.form.findField('passwd1').getValue(); - var p2 = this.form.findField('passwd2').getValue(); + var p1 = _this.form.findField('passwd1').getValue(); + var p2 = _this.form.findField('passwd2').getValue(); - if (this.sendAfterSave && !p1.length) { - Ext.MessageBox.alert("Error", "You must create a password to send introduction mail"); + if (_this.sendAfterSave && !p1.length) { + Roo.MessageBox.alert("Error", "You must create a password to send introduction mail"); return; } if (Pman.Login.authUser.id < 0 && !p1.length) { - Ext.MessageBox.alert("Error", "You must create a password for the admin account"); + Roo.MessageBox.alert("Error", "You must create a password for the admin account"); return; } if (p1.length || p2.length) { if (p1 != p2) { - Ext.MessageBox.alert("Error", "Passwords do not match"); + Roo.MessageBox.alert("Error", "Passwords do not match"); return; } } @@ -321,7 +322,7 @@ Pman.Dialog.AdminPerson = { allowBlank : true, fieldLabel : _this._strings['315fce99b77b7f392bf68d5eb14f88c7'] /* Password (type again to confirm) */, inputType : 'password', - name : 'passwd1', + name : 'passwd2', width : 150, xns : Roo.form, '|xns' : 'Roo.form'