close modal windows by press on background and other fixes
This commit is contained in:
Hedgehog 2014-02-26 20:32:05 +04:00
parent db084d989a
commit 7c1a504f70
4 changed files with 9 additions and 4 deletions

View File

@ -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")}
})
})

View File

@ -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 );

View File

@ -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;

View File

@ -134,6 +134,8 @@ function hideDmSnippetShowDmThread()
var dm_screenname = $this.attr("data-dm-screen-name");
openDmWithUserModal(dm_screenname);
$(".modal-content").css("height", "300px"); //fix
}