Skip to content

Commit

Permalink
fix of window resize things, set font size to follow button, remove i…
Browse files Browse the repository at this point in the history
…nstead detach on modal closing
  • Loading branch information
Simon Grim committed Mar 9, 2015
1 parent b7876a7 commit 8178c6e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,12 @@ button.follow, button.unfollow, .following-list button.private {
background: none;
border: solid 1px rgba( 0, 0, 0, .2 );
padding: 3px 15px;
font-size: 12px;
}

.following-list .public-following {
padding: 4px 16px;
font-size: 12px;
}

.following-list .public-following:hover {
Expand Down
9 changes: 5 additions & 4 deletions js/interface_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function closeModalHandler($this)

$modalWindows.fadeOut( "fast", function()
{
$modalWindows.detach();
$modalWindows.remove();
});
$body.css({
"overflow": "auto",
Expand Down Expand Up @@ -86,7 +86,7 @@ function closePrompt()

$modalWindows.fadeOut( "fast", function()
{
$modalWindows.detach();
$modalWindows.remove();
});
$body.css({
"overflow": "auto",
Expand Down Expand Up @@ -1448,13 +1448,13 @@ function replaceDashboards() {
$('.wrapper').addClass('w1200');
$('.userMenu').addClass('w1200');
var wf = $('.module.who-to-follow');
wf.remove();
wf.detach();
wf.appendTo($('.dashboard.right'));
} else if ($(window).width() < 1200 && $('.wrapper').hasClass('w1200')) {
$('.wrapper').removeClass('w1200');
$('.userMenu').removeClass('w1200');
var wf = $('.module.who-to-follow');
wf.remove();
wf.detach();
$('.module.mini-profile').after(wf);
}

Expand Down Expand Up @@ -1523,6 +1523,7 @@ function initInterfaceCommon() {
$( ".mentions-from-user").bind( "click", openMentionsModal );

replaceDashboards();
$( window ).resize(replaceDashboards);

$('.tox-ctc').on('click', function(){
window.prompt(polyglot.t('copy_to_clipboard'), $(this).attr('data'))
Expand Down
1 change: 0 additions & 1 deletion js/interface_home.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ var InterfaceFunctions = function()
//***********************************************
var interfaceFunctions = new InterfaceFunctions;
$( document ).ready( interfaceFunctions.init );
$( window ).resize(replaceDashboards);

//função no window que fixa o header das postagens
function fixDiv()
Expand Down
2 changes: 2 additions & 0 deletions theme_calm/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,12 @@ button.follow, button.unfollow, .following-list button.private {
background: none;
border: solid 1px rgba( 0, 0, 0, .2 );
padding: 3px 15px;
font-size: 12px;
}

.following-list .public-following {
padding: 4px 16px;
font-size: 12px;
}

.following-list .public-following:hover {
Expand Down

0 comments on commit 8178c6e

Please sign in to comment.