projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb7793a
)
Pman.Dialog.PersonEditor.js
author
Edward
<edward@roojs.com>
Mon, 22 Apr 2013 10:56:36 +0000
(18:56 +0800)
committer
Edward
<edward@roojs.com>
Mon, 22 Apr 2013 10:56:36 +0000
(18:56 +0800)
Pman.Dialog.PersonEditor.js
patch
|
blob
|
history
diff --git
a/Pman.Dialog.PersonEditor.js
b/Pman.Dialog.PersonEditor.js
index
ccfa277
..
4d460d6
100644
(file)
--- a/
Pman.Dialog.PersonEditor.js
+++ b/
Pman.Dialog.PersonEditor.js
@@
-134,10
+134,10
@@
Pman.Dialog.PersonEditor.prototype = {
if (this.type == 'staff') {
_this.form.findField('passwd1').allowBlank = false;
_this.form.findField('passwd2').allowBlank = false;
if (this.type == 'staff') {
_this.form.findField('passwd1').allowBlank = false;
_this.form.findField('passwd2').allowBlank = false;
-
//
if (data.id > 0) {
-
//
_this.form.findField('passwd1').allowBlank = true;
-
//
_this.form.findField('passwd2').allowBlank = true;
-
//
}
+ if (data.id > 0) {
+ _this.form.findField('passwd1').allowBlank = true;
+ _this.form.findField('passwd2').allowBlank = true;
+ }
}
return;
}
return;
@@
-459,9
+459,9
@@
Pman.Dialog.PersonEditor.prototype = {
name : 'passwd1',
fieldLabel : "New Password ",
value : '',
name : 'passwd1',
fieldLabel : "New Password ",
value : '',
- allowBlank :
fals
e, // must be filled in as we rely on it for login details..
-
//
inputType: 'password',
- xtype : '
TextField
',
+ allowBlank :
tru
e, // must be filled in as we rely on it for login details..
+ inputType: 'password',
+ xtype : '
SecurePass
',
width : 220,
imageRoot : rootURL + '/Pman/templates/images'
},
width : 220,
imageRoot : rootURL + '/Pman/templates/images'
},
@@
-470,7
+470,7
@@
Pman.Dialog.PersonEditor.prototype = {
name : 'passwd2',
fieldLabel : "Password (type again to confirm)",
value : '',
name : 'passwd2',
fieldLabel : "Password (type again to confirm)",
value : '',
- allowBlank :
fals
e, // must be filled in as we rely on it for login details..
+ allowBlank :
tru
e, // must be filled in as we rely on it for login details..
inputType: 'password',
xtype : 'TextField',
width : 220
inputType: 'password',
xtype : 'TextField',
width : 220