mirror of
https://github.com/twisterarmy/theme_nin.git
synced 2025-02-07 04:24:27 +00:00
disable right col if modules are empty
This commit is contained in:
parent
85e5bf2b9f
commit
43e0221714
@ -4,17 +4,19 @@ $(window).resize(function()
|
|||||||
reAppendModules();
|
reAppendModules();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(window).load(function()
|
||||||
|
{
|
||||||
|
testRightSide();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function()
|
$(document).ready(function()
|
||||||
{
|
{
|
||||||
var windowHeight = $(window).height();
|
var windowHeight = $(window).height();
|
||||||
|
|
||||||
// make right modules expendables
|
|
||||||
//slideUpModules();
|
|
||||||
|
|
||||||
reOrganizeTemplates();
|
|
||||||
testRightSide();
|
testRightSide();
|
||||||
|
reOrganizeTemplates();
|
||||||
|
|
||||||
|
|
||||||
$( '.userMenu-home.current a' ).on( 'click', function() {
|
$( '.userMenu-home.current a' ).on( 'click', function() {
|
||||||
$('html, body').animate({scrollTop:0},300);
|
$('html, body').animate({scrollTop:0},300);
|
||||||
@ -47,16 +49,7 @@ $(document).ready(function()
|
|||||||
$(window).scroll(function(){
|
$(window).scroll(function(){
|
||||||
window_scrollY = window.pageYOffset; // declare variable here for screen not to scroll when closing modals
|
window_scrollY = window.pageYOffset; // declare variable here for screen not to scroll when closing modals
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
$(window).scroll(function(){
|
|
||||||
window_scrollY = window.pageYOffset; // declare variable here for screen not to scroll when closing modals
|
|
||||||
|
|
||||||
if ($(document).scrollTop() >= 142) { // fixe the textarea on top while scrolling (could be useful)
|
|
||||||
if (this.css('position') === 'relative')
|
|
||||||
this.addClass('onTop');
|
|
||||||
}else if (this.css('position') === 'fixed')
|
|
||||||
this.removeClass('onTop');
|
|
||||||
}).bind($('#postboard-top')));*/
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -100,9 +93,6 @@ function reOrganizeTemplates() { // for nin's templating
|
|||||||
$('.mini-profile-indicators').detach().insertAfter($('.dashboard.left .profile-data'));
|
$('.mini-profile-indicators').detach().insertAfter($('.dashboard.left .profile-data'));
|
||||||
$('.post-context').each(function(){ $(this).prependTo($(this).parent()); }); // puts context on top of post
|
$('.post-context').each(function(){ $(this).prependTo($(this).parent()); }); // puts context on top of post
|
||||||
|
|
||||||
// menu
|
|
||||||
//$('.userMenu li > a').wrapInner('<span class="inner"></span>');
|
|
||||||
|
|
||||||
///// page profile
|
///// page profile
|
||||||
$('.profile-card-main h2').detach().insertBefore($('.profile-card-main'));
|
$('.profile-card-main h2').detach().insertBefore($('.profile-card-main'));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user