Skip to content

Commit

Permalink
Fix infinite-scroll. #8
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsirois committed Jan 27, 2014
1 parent 289c7a5 commit 7615b8c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/kijiji/javascript/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ init = function() {
/*}}}*/

/* InfiniteScroll {{{*/
$('.container-results .bottom-bar').hide()
$('.container-results .srp-bottom-links').remove()

$('#SNB_Results tbody').infinitescroll({
navSelector : ".paginationBottomBg",
nextSelector : ".paginationBottomBg a.prevNextLink:last",
itemSelector : "#SNB_Results .resultsTableSB",
$('.container-results').infinitescroll({
navSelector : ".bottom-bar .pagination",
nextSelector : ".bottom-bar .pagination a[title]:first",
itemSelector : ".container-results > table",
bufferPx : 2000,
loading : {
msg: $('<tr><td colspan="5"><p class="infinite-scroll-loading"><img src="data:image/gif;base64,R0lGODlhJgAMAOMAAOzm/PT2/Ozu/Pz+/Pz2/PTu/Ozq/Pz6/PTy/P///wAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBwAJACwAAAAAJgAMAAAEWjAdYaotJ+lpb9BS0VVFMBxAqq4fur7f8MLCvApJYatGvvM/QM8QBCRqQeJvWDwWlT9nULpsQnfU3dWW2M66T2sTWZ2SsWdbIIhIrH84l3bwnvU09ZdhgJ9HAAAh+QQJBwAUACwAAAAAJgAMAISsquzk4vz08vy8uvTs6vz8+vzEwvS8tvS0ruzs5vz89vz07vzMxvSsruzk5vz09vzEvvTs7vz8/vzExvT///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFsqBEGNBgmgxBrUVEvPDyrFSxwPEjAjyP9AjVI0EsJgLEmSThMBKRiskPMO0BGJRFM4BEMhMqwbPrDRAG1jQAQiEc39y3KgKvmwdVNXvh/cJVfERNfkRoaj1sbltvX4CLXUdNhmlTe091R4CQb4MJEFZ5a22YjHNF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BaWO5vmoVLRMdA0lUuEcfL8fqUdv+HsJGoAkEoBsOCK8nfSQcDAojMTBMaUeCBREkjkeDwjb9G8Lhk65afCiTAcY0FrvFMxY56VyZHV2aGpRVHxdP1qBg0oEb4ZghXBdBxRzdUt3PHmdPHyeWlo7jWNLj4ZviWmtbJiCZUgGUHqtVjGqaldijnYKfz48LwWGaVovEaixDQESCmjRXwQvKtDS0QoSKgcDBg3f4Q4KIQA7" /> ' + loadingText + '</p></td></tr>')
},
pathParse : function(path){
if (path.match(/^(.*PageZ).*(QQ.*?$)/)) {
return path.match(/^(.*PageZ).*(QQ.*?$)/).slice(1);
} else {
return Array(path.match(/^(.*QQPageZ).*/)[1], '');
}
if (path.match(/^(.*page\-).*(\/.*$)/)) {
return path.match(/^(.*page\-).*(\/.*$)/).slice(1);
}
}
},function(a){
listingOnNewContent()
Expand Down

0 comments on commit 7615b8c

Please sign in to comment.