stop it showing dialogues unless it needs to

This commit is contained in:
John McLear 2013-01-31 01:19:47 +00:00
parent 68dd65cc7a
commit 9eab1c29a6

View file

@ -19,7 +19,7 @@ exports.handleClientMessage_emailSubscriptionSuccess = function(hook, context){
}
function init(){
var popUpIsAlreadyVisible = $('#ep_email').is(":visible");
var popUpIsAlreadyVisible = $('.ep_email_form').is(":visible");
if(!popUpIsAlreadyVisible){ // if the popup isn't already visible
if(clientHasAlreadyRegistered()){ // if the client has already registered for emails on this pad.
// showAlreadyRegistered(); // client has already registered, let em know..