forked from saurabh/orbit4-5
fixed js for email resend button
This commit is contained in:
parent
75d8c46576
commit
d65df694a5
|
@ -38,7 +38,12 @@ var StoreManager = function(){
|
|||
loadingArea.find("img").hide();
|
||||
loadingAreaStatus.text(data.message);
|
||||
if(data.error == "SITE_NOT_CONFIRMED"){
|
||||
loadingArea.find("p").eq(1).html("<a href='#'>Resend Email</a>");
|
||||
var resentBtn = $("<a href=''>Resend Email</a>");
|
||||
resentBtn.on("click",function(){
|
||||
resendEmail();
|
||||
return false;
|
||||
})
|
||||
loadingArea.find("p").eq(1).html(resendBtn);
|
||||
}else if(data.error == "SITE_PERMISSION_DENIED"){
|
||||
loadingArea.find("p").eq(1).html("Please contact <a href='http://www.rulingcom.com/'>www.rulingcom.com</a>.");
|
||||
}else{
|
||||
|
@ -128,11 +133,11 @@ var StoreManager = function(){
|
|||
}).done(function(data){
|
||||
if(data.success){
|
||||
loadingArea.find("img").hide();
|
||||
loadingAreaStatus.text("Email sent to the address " + email + ". Please verify and come back.");
|
||||
loadingAreaStatus.text("Email sent. Please verify and come back.");
|
||||
loadingArea.find("p").eq(1).hide();
|
||||
}else{
|
||||
loadingArea.find("img").hide();
|
||||
loadingAreaStatus.text("Email couldn't be sent to " + email + ". You can try again or contact <a href='http://www.rulingcom.com'>www.rulingcom.com</a>");
|
||||
loadingAreaStatus.text("Email couldn't be sent. You can try again or contact <a href='http://www.rulingcom.com'>www.rulingcom.com</a>");
|
||||
loadingArea.find("p").eq(1).html("Please contact <a href='http://www.rulingcom.com/'>www.rulingcom.com</a>.");
|
||||
}
|
||||
}).fail(showError);
|
||||
|
|
Loading…
Reference in New Issue