From afdc4fae1b23660425c2e061ca049ff989e45423 Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 7 Feb 2017 23:26:27 -0600 Subject: [PATCH] more finetuning... --- templates/sell_userInfo.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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(){

About you

+ +