replace maitre link url with status on waitlist

This commit is contained in:
G14 2016-09-18 21:43:08 +05:00
parent 9229df7bee
commit c8fab0ec6b

View File

@ -101,14 +101,6 @@
afterSuccess: function(data, form) {
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();
jQuery("#maitre-share-plain-url").on('click', function () {
var link = document.createRange();
link.selectNode(this);
@ -120,10 +112,19 @@
jQuery("#maitre-share-plain-url").html(copytext);
setTimeout(function(){
jQuery("#maitre-share-plain-url").html(text);
},1000)
},500)
}
});
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("#maitre-share-plain-url").html("https://status.im/invite/" + data.code)
jQuery(".gradient-text").empty();
ga('send', 'event', 'Waitlist', 'Sign Up', 'Waitlist');
}
},