From ae1ab04f69f82e3f349af2073ec6835bfb2d0461 Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Thu, 27 Feb 2014 19:50:06 +0400 Subject: [PATCH] update bug fix close by click on any place in modal window --- calm.js | 9 +++++---- home.html | 2 +- interface_common.js | 7 +++++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/calm.js b/calm.js index 0780db8..b1fd416 100644 --- a/calm.js +++ b/calm.js @@ -2,8 +2,9 @@ $(function(){ $('.post-text').on('click', 'a', function(e){ e.stopPropagation(); }); - $(".modal-blackout").on('click', function(){ - closeModal($(this)); - if($(".modal-content").attr("style") != undefined){$(".modal-content").removeAttr("style")} - }) + + $(".cancel").on('click', function(e){ + if($(".modal-content").attr("style") != undefined){$(".modal-content").removeAttr("style")}; + +}) }) \ No newline at end of file diff --git a/home.html b/home.html index d7e6276..9488de1 100644 --- a/home.html +++ b/home.html @@ -271,7 +271,7 @@ -