From 9eab1c29a6b29e878ca312c748218fed2ca49cd3 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 31 Jan 2013 01:19:47 +0000 Subject: [PATCH] stop it showing dialogues unless it needs to --- static/js/ep_email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ep_email.js b/static/js/ep_email.js index e8862b1..0944f8e 100644 --- a/static/js/ep_email.js +++ b/static/js/ep_email.js @@ -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..