From 7c1a504f70454ab9da6c91874ba99f432e56c655 Mon Sep 17 00:00:00 2001 From: Hedgehog Date: Wed, 26 Feb 2014 20:32:05 +0400 Subject: [PATCH] update close modal windows by press on background and other fixes --- calm.js | 5 ++++- css/profile.css | 2 +- css/style.css | 4 ++-- twister_directmsg.js | 2 ++ 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/calm.js b/calm.js index 39acdd5..0780db8 100644 --- a/calm.js +++ b/calm.js @@ -2,5 +2,8 @@ $(function(){ $('.post-text').on('click', 'a', function(e){ e.stopPropagation(); }); - console.log(ret) + $(".modal-blackout").on('click', function(){ + closeModal($(this)); + if($(".modal-content").attr("style") != undefined){$(".modal-content").removeAttr("style")} + }) }) \ No newline at end of file diff --git a/css/profile.css b/css/profile.css index 4f965f1..deb995b 100644 --- a/css/profile.css +++ b/css/profile.css @@ -76,7 +76,7 @@ right: 10px; padding: 10px; font-size: 12px; - width: 110px; + width: 120px; text-align: center; color: rgba( 0, 0, 0, .7 ); background: rgba( 0, 0, 0, .1 ); diff --git a/css/style.css b/css/style.css index 9fab761..2c50259 100644 --- a/css/style.css +++ b/css/style.css @@ -1516,15 +1516,15 @@ input.userMenu-search-field:focus::-ms-input-placeholder { .directMessages .modal-wrapper { width: 540px; - height: auto; + height: 470px; margin: -200px 0 0 -280px; overflow-x: hidden; } .directMessages .modal-content { overflow-y: auto; - height: 400px; } + .directMessages .modal-buttons { display: none; diff --git a/twister_directmsg.js b/twister_directmsg.js index e9e1bbb..80a7c25 100644 --- a/twister_directmsg.js +++ b/twister_directmsg.js @@ -134,6 +134,8 @@ function hideDmSnippetShowDmThread() var dm_screenname = $this.attr("data-dm-screen-name"); openDmWithUserModal(dm_screenname); + + $(".modal-content").css("height", "300px"); //fix }