From 43e0221714691e2eb70675a761176f33b29c4277 Mon Sep 17 00:00:00 2001 From: myleneb Date: Mon, 10 Aug 2015 06:12:31 +0200 Subject: [PATCH] disable right col if modules are empty --- js/theme_option.js | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/js/theme_option.js b/js/theme_option.js index 8e77d31..c0e1627 100644 --- a/js/theme_option.js +++ b/js/theme_option.js @@ -4,17 +4,19 @@ $(window).resize(function() reAppendModules(); }); +$(window).load(function() +{ + testRightSide(); +}); $(document).ready(function() { var windowHeight = $(window).height(); - // make right modules expendables - //slideUpModules(); - - reOrganizeTemplates(); testRightSide(); + reOrganizeTemplates(); + $( '.userMenu-home.current a' ).on( 'click', function() { $('html, body').animate({scrollTop:0},300); @@ -47,16 +49,7 @@ $(document).ready(function() $(window).scroll(function(){ 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')); $('.post-context').each(function(){ $(this).prependTo($(this).parent()); }); // puts context on top of post - // menu - //$('.userMenu li > a').wrapInner(''); - ///// page profile $('.profile-card-main h2').detach().insertBefore($('.profile-card-main'));