diff --git a/templates/sell_userInfo.html b/templates/sell_userInfo.html index 33a2f25..bedd077 100644 --- a/templates/sell_userInfo.html +++ b/templates/sell_userInfo.html @@ -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(){