Commit f574f8fa authored by Ghighi Eftimie's avatar Ghighi Eftimie

better js check

parent cedfa90d
...@@ -172,7 +172,7 @@ $(function() { ...@@ -172,7 +172,7 @@ $(function() {
layoutMode : "fitColumns" layoutMode : "fitColumns"
}); });
if ($('.next').length) {
var $loadMore = $(".load-more .row").infiniteScroll({ var $loadMore = $(".load-more .row").infiniteScroll({
debug: false, debug: false,
// selector for the paged navigation (it will be hidden) // selector for the paged navigation (it will be hidden)
...@@ -188,7 +188,7 @@ $(function() { ...@@ -188,7 +188,7 @@ $(function() {
}); });
// fix for infinite scroll on CaliBlur Theme (#981) // fix for infinite scroll on CaliBlur Theme (#981)
if ($(".load-more .row").length && $("body").hasClass("blur")) { if ($("body").hasClass("blur")) {
$(".col-sm-10").bind("scroll", function () { $(".col-sm-10").bind("scroll", function () {
if ( if (
$(this).scrollTop() + $(this).innerHeight() >= $(this).scrollTop() + $(this).innerHeight() >=
...@@ -199,6 +199,7 @@ $(function() { ...@@ -199,6 +199,7 @@ $(function() {
} }
}); });
} }
}
$("#restart").click(function() { $("#restart").click(function() {
$.ajax({ $.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment