From 248d5fb3c2cd3d73e07078b728481bb50eb9bd6f Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 24 Oct 2013 10:19:44 +0000 Subject: [PATCH] Panel bugfix --- portal/panel.ms | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/portal/panel.ms b/portal/panel.ms index 6b8a04f..e117d03 100644 --- a/portal/panel.ms +++ b/portal/panel.ms @@ -52,12 +52,14 @@ ynh.jquery = jQuery.noConflict(); $("#glu").load(function() { setTimeout(function() { - $('body').children().filter(function() { - return $(this).css("position") === 'absolute' || $(this).css("position") === 'fixed'; - }).css({top: function(index, value) { + if ($("#ynhtopbar").length == 0) { + $('body').children().filter(function() { + return $(this).css("position") === 'absolute' || $(this).css("position") === 'fixed'; + }).css({top: function(index, value) { return parseFloat(value) + h + 3; - }}); - $("body").append('
YunoHost
'); + }}); + $("body").append('
YunoHost
'); + } $("body").css({marginTop: function(index, value) { return parseFloat(value) + h + 3; }}); @@ -85,7 +87,7 @@ ynh.jquery = jQuery.noConflict(); checkScroll("bottom"); preventFire = true; } else { - setTimeout(function() { preventFire = false; }, 200); + setTimeout(function() { preventFire = false; }, 500); checkScroll("top"); } });