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() {
|
$("#glu").load(function() {
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$('body').children().filter(function() {
|
if ($("#ynhtopbar").length == 0) {
|
||||||
return $(this).css("position") === 'absolute' || $(this).css("position") === 'fixed';
|
$('body').children().filter(function() {
|
||||||
}).css({top: function(index, value) {
|
return $(this).css("position") === 'absolute' || $(this).css("position") === 'fixed';
|
||||||
|
}).css({top: function(index, value) {
|
||||||
return parseFloat(value) + h + 3;
|
return parseFloat(value) + h + 3;
|
||||||
}});
|
}});
|
||||||
$("body").append('<div id="ynhtopbar"><div id="ynhtoggle" class="ynhopen">YunoHost</div></div>');
|
$("body").append('<div id="ynhtopbar"><div id="ynhtoggle" class="ynhopen">YunoHost</div></div>');
|
||||||
|
}
|
||||||
$("body").css({marginTop: function(index, value) {
|
$("body").css({marginTop: function(index, value) {
|
||||||
return parseFloat(value) + h + 3;
|
return parseFloat(value) + h + 3;
|
||||||
}});
|
}});
|
||||||
|
@ -85,7 +87,7 @@ ynh.jquery = jQuery.noConflict();
|
||||||
checkScroll("bottom");
|
checkScroll("bottom");
|
||||||
preventFire = true;
|
preventFire = true;
|
||||||
} else {
|
} else {
|
||||||
setTimeout(function() { preventFire = false; }, 200);
|
setTimeout(function() { preventFire = false; }, 500);
|
||||||
checkScroll("top");
|
checkScroll("top");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue