|
@@ -1,14 +1,15 @@
|
|
|
$(document).ready(function () {
|
|
|
+ var i = 0;
|
|
|
$(".w-pagination-next").bind('click', function (e) {
|
|
|
e.preventDefault();
|
|
|
jQuery.get($(this).attr('href'), function (data) {
|
|
|
-
|
|
|
- $('.w-dyn-items').append($(data).children('.w-dyn-items'));
|
|
|
+ i++;
|
|
|
+ console.log(i);
|
|
|
+ $('.w-dyn-items').append(data.children('.w-dyn-items'));
|
|
|
|
|
|
- var next = $(data).find('.w-pagination-next').attr('href');
|
|
|
+ var next = data.find('.w-pagination-next').attr('href');
|
|
|
console.log(next);
|
|
|
$('.w-pagination-next').attr('href', next);
|
|
|
- */
|
|
|
console.log("Load");
|
|
|
})
|
|
|
});
|