fix appearance callback

This commit is contained in:
G14 2016-09-18 19:44:01 +05:00
parent c51ecb5898
commit 6547c51acc
1 changed files with 5 additions and 5 deletions

View File

@ -100,11 +100,6 @@
}, },
afterSuccess: function(data, form) { afterSuccess: function(data, form) {
jQuery(".status-text").removeClass('shown');
jQuery("#maitre-verification").html(
"Remember to confirm your email to be added to the signup queue. <br /> Improve your position by referring your friends and spreading the word.");
jQuery("#maitre-people-behind-number").html("0");
jQuery(".gradient-text").empty();
jQuery("#maitre-share-plain-url").on('click', function () { jQuery("#maitre-share-plain-url").on('click', function () {
var link = document.createRange(); var link = document.createRange();
@ -121,6 +116,11 @@
} }
}) })
if (data.response == "subscriber_created") { if (data.response == "subscriber_created") {
jQuery(".status-text").removeClass('shown');
jQuery("#maitre-verification").html(
"Remember to confirm your email to be added to the signup queue. <br /> Improve your position by referring your friends and spreading the word.");
jQuery("#maitre-people-behind-number").html("0");
jQuery(".gradient-text").empty();
ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist'); ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist');
} }
}, },