handle empty email field onBlur event correctly
This commit is contained in:
parent
95bc1f433d
commit
70d72e5f28
1 changed files with 15 additions and 9 deletions
|
@ -65,7 +65,12 @@ function updateFields(data, textStatus) {
|
|||
}
|
||||
}
|
||||
|
||||
function onChangeShowAll(event) {
|
||||
alert(event);
|
||||
}
|
||||
|
||||
function onBlurEmail() {
|
||||
if ($.trim($('#email').attr('value')).length > 0) {
|
||||
$.ajax({
|
||||
'url' : '${h.url_for(action='fetchdddata')}',
|
||||
'data' : {'email' : $('#email').attr('value')},
|
||||
|
@ -76,6 +81,7 @@ function onBlurEmail() {
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
var fields = new Array(
|
||||
|
|
Loading…
Reference in a new issue