Moving scrollbar to main panel instead of the body to lock header and sidebar in place
This commit is contained in:
@@ -408,17 +408,17 @@ $(function() {
|
||||
});
|
||||
|
||||
// fix for infinite scroll on CaliBlur Theme (#981)
|
||||
if ($("body").hasClass("blur")) {
|
||||
$(".col-sm-10").bind("scroll", function () {
|
||||
if (
|
||||
$(this).scrollTop() + $(this).innerHeight() >=
|
||||
$(this)[0].scrollHeight
|
||||
) {
|
||||
$loadMore.infiniteScroll("loadNextPage");
|
||||
window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(".col-sm-10").bind("scroll", function () {
|
||||
if (
|
||||
$(this).scrollTop() + $(this).innerHeight() >=
|
||||
$(this)[0].scrollHeight
|
||||
) {
|
||||
$loadMore.infiniteScroll("loadNextPage");
|
||||
window.history.replaceState({}, null, $loadMore.infiniteScroll("getAbsolutePath"));
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
$("#restart").click(function() {
|
||||
|
||||
Reference in New Issue
Block a user