Browse Source

update

close modal windows by press on background and other fixes
master
Hedgehog 11 years ago
parent
commit
7c1a504f70
  1. 5
      calm.js
  2. 2
      css/profile.css
  3. 4
      css/style.css
  4. 2
      twister_directmsg.js

5
calm.js

@ -2,5 +2,8 @@ $(function(){
$('.post-text').on('click', 'a', function(e){ $('.post-text').on('click', 'a', function(e){
e.stopPropagation(); e.stopPropagation();
}); });
console.log(ret) $(".modal-blackout").on('click', function(){
closeModal($(this));
if($(".modal-content").attr("style") != undefined){$(".modal-content").removeAttr("style")}
})
}) })

2
css/profile.css

@ -76,7 +76,7 @@
right: 10px; right: 10px;
padding: 10px; padding: 10px;
font-size: 12px; font-size: 12px;
width: 110px; width: 120px;
text-align: center; text-align: center;
color: rgba( 0, 0, 0, .7 ); color: rgba( 0, 0, 0, .7 );
background: rgba( 0, 0, 0, .1 ); background: rgba( 0, 0, 0, .1 );

4
css/style.css

@ -1516,15 +1516,15 @@ input.userMenu-search-field:focus::-ms-input-placeholder {
.directMessages .modal-wrapper .directMessages .modal-wrapper
{ {
width: 540px; width: 540px;
height: auto; height: 470px;
margin: -200px 0 0 -280px; margin: -200px 0 0 -280px;
overflow-x: hidden; overflow-x: hidden;
} }
.directMessages .modal-content .directMessages .modal-content
{ {
overflow-y: auto; overflow-y: auto;
height: 400px;
} }
.directMessages .modal-buttons .directMessages .modal-buttons
{ {
display: none; display: none;

2
twister_directmsg.js

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

Loading…
Cancel
Save