From e0ae607f3d0a0b0d67516bbfb4b930b5de2e4000 Mon Sep 17 00:00:00 2001 From: benweet Date: Thu, 19 Sep 2013 22:54:50 +0100 Subject: [PATCH] Fixed static modal for unique window detection --- res/core.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/res/core.js b/res/core.js index 44bc2b48..8c3dec9b 100644 --- a/res/core.js +++ b/res/core.js @@ -66,10 +66,7 @@ define([ clearInterval(intervalId); } $(".modal").modal("hide"); - $('.modal-non-unique').modal({ - backdrop: "static", - keyboard: false - }); + $('.modal-non-unique').modal("show"); } } @@ -876,6 +873,13 @@ define([ e.stopPropagation(); }); + // Non unique window dialog + $('.modal-non-unique').modal({ + backdrop: "static", + keyboard: false, + show: false + }); + // Load images _.each(document.querySelectorAll('img'), function(imgElt) { var $imgElt = $(imgElt);