mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Panel bugfix
This commit is contained in:
parent
c0c10edbf5
commit
248d5fb3c2
1 changed files with 8 additions and 6 deletions
|
@ -52,12 +52,14 @@ ynh.jquery = jQuery.noConflict();
|
|||
$("#glu").load(function() {
|
||||
|
||||
setTimeout(function() {
|
||||
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('<div id="ynhtopbar"><div id="ynhtoggle" class="ynhopen">YunoHost</div></div>');
|
||||
}
|
||||
$("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");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue