mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-20 16:03:59 +01:00
Added Auto Resize to scrollbar
This commit is contained in:
@@ -174,7 +174,7 @@ function enit()
|
|||||||
var mainWindow = $("#main");
|
var mainWindow = $("#main");
|
||||||
var totalHeight = $(window).height() - ($("#header").outerHeight() + $("#footer").outerHeight()) - 3;
|
var totalHeight = $(window).height() - ($("#header").outerHeight() + $("#footer").outerHeight()) - 3;
|
||||||
$(mainWindow).height(totalHeight);
|
$(mainWindow).height(totalHeight);
|
||||||
$(mainWindow).jScrollPane({ showArrows: true, animateScroll: true, hijackInternalLinks: true });
|
$(mainWindow).jScrollPane({ showArrows: true, animateScroll: true, hijackInternalLinks: true, autoReinitialise: true });
|
||||||
}
|
}
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("ul#nav-view li").toggle(function() {
|
$("ul#nav-view li").toggle(function() {
|
||||||
@@ -188,7 +188,6 @@ $(document).ready(function(){
|
|||||||
$(this).children("span").addClass("Icon");
|
$(this).children("span").addClass("Icon");
|
||||||
$("#gridView").show();
|
$("#gridView").show();
|
||||||
$("#listView").hide();
|
$("#listView").hide();
|
||||||
enit();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user