orion3dgames / gridder

A jQuery plugin that displays a thumbnail grid expanding preview similar to the effect seen on Google Images.
http://orion3dgames.github.io/gridder/
461 stars 130 forks source link

Add items via AJAX #41

Closed antonovsky closed 8 years ago

antonovsky commented 8 years ago

Hello! Thank you for gridder. There is one problem. If I add items via ajax, expanding do not work for this items. I think it's because gridder initialized only once and can not be changed. /* CLICK EVENT */ _this.find(".gridder-list").on("click", function (e) { e.preventDefault(); var myself = $(this); openExpander(myself); }); This code is not called for added via ajax items. Please help me. Sorry for my English, I write through google translate.

orion3dgames commented 8 years ago

Hello. Thanks for reporting. I never had that scenario. I'll looking into it.

orion3dgames commented 8 years ago

The new version should work now for you. :)

antonovsky commented 8 years ago

Thank you very much!