remove some annoying 'missing username/password/e-mail' messages
This commit is contained in:
parent
94a9a59718
commit
3bed914023
3 changed files with 31 additions and 25 deletions
|
|
@ -204,12 +204,7 @@ pandora.ui.accountForm = function(action, value) {
|
|||
id: 'code',
|
||||
label: 'Code',
|
||||
labelWidth: 120,
|
||||
validate: function(value, callback) {
|
||||
callback({
|
||||
message: 'Missing code',
|
||||
valid: value.length > 0
|
||||
});
|
||||
},
|
||||
validate: pandora.validateCode,
|
||||
width: 320
|
||||
});
|
||||
} else if (type == 'email') {
|
||||
|
|
@ -257,12 +252,7 @@ pandora.ui.accountForm = function(action, value) {
|
|||
label: 'Password',
|
||||
labelWidth: 120,
|
||||
type: 'password',
|
||||
validate: function(value, callback) {
|
||||
callback({
|
||||
message: 'Missing password',
|
||||
valid: value.length > 0
|
||||
});
|
||||
},
|
||||
validate: pandora.validatePassword,
|
||||
width: 320
|
||||
});
|
||||
} else if (type == 'username') {
|
||||
|
|
@ -295,7 +285,8 @@ pandora.ui.accountForm = function(action, value) {
|
|||
? pandora.autovalidateUsername : pandora.autovalidateEmail,
|
||||
validate: pandora.validateUser(selected, true),
|
||||
value: ''
|
||||
}).focus();
|
||||
}).focusInput();
|
||||
//setTimeout(that.submit, 250);
|
||||
pandora.$ui.accountDialog.disableButton('submitReset');
|
||||
}
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue