parent
ec81a3cd92
commit
9128615f48
2 changed files with 16 additions and 33 deletions
27
cps/static/js/libs/plugins.js
vendored
27
cps/static/js/libs/plugins.js
vendored
File diff suppressed because one or more lines are too long
|
@ -77,30 +77,14 @@ $(function() {
|
||||||
layoutMode : "fitRows"
|
layoutMode : "fitRows"
|
||||||
});
|
});
|
||||||
|
|
||||||
/*$(".load-more .row").infinitescroll({
|
|
||||||
debug: true,
|
|
||||||
navSelector : ".pagination",
|
|
||||||
// selector for the paged navigation (it will be hidden)
|
|
||||||
nextSelector : ".next",
|
|
||||||
// selector for the NEXT link (to page 2)
|
|
||||||
itemSelector : ".load-more .book",
|
|
||||||
animate : true,
|
|
||||||
extraScrollPx: 300
|
|
||||||
// selector for all items you'll retrieve
|
|
||||||
}, function(data) {
|
|
||||||
$(".load-more .row").isotope( "appended", $(data), null );
|
|
||||||
});*/
|
|
||||||
|
|
||||||
var $loadMore = $(".load-more .row").infiniteScroll({
|
var $loadMore = $(".load-more .row").infiniteScroll({
|
||||||
debug: false,
|
debug: false,
|
||||||
// hideNav : ".pagination", # ToDo Renable functionn
|
|
||||||
// selector for the paged navigation (it will be hidden)
|
// selector for the paged navigation (it will be hidden)
|
||||||
path : ".next",
|
path : ".next",
|
||||||
// selector for the NEXT link (to page 2)
|
// selector for the NEXT link (to page 2)
|
||||||
append : ".load-more .book",
|
append : ".load-more .book"
|
||||||
//animate : true,
|
//animate : true, # ToDo: Reenable function
|
||||||
//extraScrollPx: 300
|
//extraScrollPx: 300
|
||||||
// selector for all items you'll retrieve
|
|
||||||
});
|
});
|
||||||
$loadMore.on( 'append.infiniteScroll', function( event, response, path, data ) {
|
$loadMore.on( 'append.infiniteScroll', function( event, response, path, data ) {
|
||||||
$(".pagination").addClass("hidden");
|
$(".pagination").addClass("hidden");
|
||||||
|
@ -218,6 +202,6 @@ $(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).resize(function() {
|
$(window).resize(function() {
|
||||||
$(".discover .row").isotope("reLayout");
|
$(".discover .row").isotope("layout");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue