mirror of
https://github.com/kremalicious/blog.git
synced 2024-12-23 01:30:01 +01:00
fix infinescroll on photos page
This commit is contained in:
parent
fc83466045
commit
de9d8172ef
@ -154,7 +154,7 @@ var infiniteScroll = {
|
||||
|
||||
infiniteScrollSetup: function() {
|
||||
|
||||
if ( $('#photos').length > 0 ) {
|
||||
if ( $('.page-photos').length > 0 ) {
|
||||
var items = '#main .masonry';
|
||||
} else {
|
||||
var items = '#main article.hentry';
|
||||
@ -171,7 +171,7 @@ var infiniteScroll = {
|
||||
// run picturefill over retrieved items
|
||||
picturefill();
|
||||
// run the photogrid over retrieved items
|
||||
//photoGrid.init();
|
||||
photoGrid.init();
|
||||
});
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user