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"); } });