Active
Project:
Views Load More
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2014 at 04:50 UTC
Updated:
1 May 2022 at 17:09 UTC
Jump to comment: Most recent
i use jquery isotope with view to show gallery. when i use view load more + ajax, gallery don't show new item. Because jquery isotope don't know new items when loaded ajax. Isotope have support append function. So i try edit file views_load_more.js with command
var newItems = $('.isotope .view-row:not(".isotope-item")');
wrapper.find('.view-content').isotope('addItems', newItems); after command
wrapper.trigger('views_load_more.new_content', new_content.clone());
and it work fine for me.
I hope you can support jquery isotope in next version.
thank you.hank you.
Comments
Comment #1
adamgerthel commentedYou can probably make it work by using the jquery trigger that you mentioned:
wrapper.trigger('views_load_more.new_content', new_content.clone());I've just implemented masonry like this:
Without going into row-by-row, I'm basically keeping track of which items have already been added, and simply using masonry's "appended" method to add items. The imagesLoaded is another plugin (https://github.com/desandro/imagesloaded) that can be used to fire Masonry after all images have loaded.
Isotope obviously isn't identical, but the same logic applies.
Comment #2
dayvson009 commentedEu consegui.
alterei o codigo do arquivo views_load_more.js
linha :85
para
você pode fazer com jquery diminui ainda mais o código
Comment #3
zalak.addweb commentedComment #4
avpaderno