more finetuning...
This commit is contained in:
@@ -24,18 +24,21 @@ function checkEMail(theEmailAddress){
|
||||
}
|
||||
});
|
||||
} else {
|
||||
def.reject("{status:'err', error:'pattern not matching e-mail format.'}")
|
||||
def.reject({status:'err', error:'pattern not matching e-mail format.'});
|
||||
}
|
||||
return def.promise();
|
||||
}
|
||||
|
||||
function nextHandler(){
|
||||
$("#checkEMail").removeClass("hide");
|
||||
$("#alertInvalidEMail").addClass("hide");
|
||||
checkEMail($($('[name="email"]')[0]).val()).then(function(){
|
||||
$("#checkEMail").addClass("hide");
|
||||
window.location="#Sell/page2/";
|
||||
}).fail(function(data){
|
||||
if (ibuyproperties.isDebugMode) { console.log("EMail Wrong"); }
|
||||
$("#alertInvalidEMailError").text(data.error);
|
||||
$("#checkEMail").addClass("hide");
|
||||
$("#alertInvalidEMail").removeClass("hide");
|
||||
console.error("E-Mail check error",data)
|
||||
});
|
||||
@@ -43,9 +46,13 @@ function nextHandler(){
|
||||
</script>
|
||||
|
||||
<h3>About you</h3>
|
||||
<div id="checkEMail" class="alert alert-success hide" role="alert">
|
||||
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
||||
Checking the validity of the supplied EMail address...
|
||||
</div>
|
||||
|
||||
<div id="alertInvalidEMail" class="alert alert-danger hide" role="alert">
|
||||
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
||||
<span class="sr-only">Error:</span>
|
||||
A valid email address is required. Error-Description: <span id="alertInvalidEMailError"></span>
|
||||
</div>
|
||||
<div class="input-group" style="width:100%">
|
||||
|
||||
Reference in New Issue
Block a user