mirror of
https://github.com/twisterarmy/theme_nin.git
synced 2025-02-06 03:54:29 +00:00
make testRightSide() agnostic to which modules are exist
This commit is contained in:
parent
1a607b30f4
commit
7933186018
@ -61,13 +61,14 @@ $(document).ready(function()
|
|||||||
});
|
});
|
||||||
|
|
||||||
function testRightSide() { // if rightside is empty, don't show it and engarge postboard
|
function testRightSide() { // if rightside is empty, don't show it and engarge postboard
|
||||||
if( ( $('.toptrends').html() == '' ) && ($('.who-to-follow').html() == '') && ( $('.twistday-reminder').html() == '' ) ){
|
var container = $('.dashboard.right');
|
||||||
$('.dashboard.right').css('display: none');
|
|
||||||
$('.wrapper .postboard').addClass('large');
|
if (container.children('.module:not(:empty)').length) {
|
||||||
}
|
container.show();
|
||||||
else {
|
|
||||||
$('.dashboard.right').css('display: block');
|
|
||||||
$('.wrapper .postboard').removeClass('large');
|
$('.wrapper .postboard').removeClass('large');
|
||||||
|
} else {
|
||||||
|
container.hide();
|
||||||
|
$('.wrapper .postboard').addClass('large');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user