1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
436 stars 177 forks source link

Adding a javascript link does not work on paginated items #258

Closed blueamerican closed 7 years ago

blueamerican commented 7 years ago

I have a javascript event handler on a link in an item:

jQuery('document').ready(function(){
        jQuery('#demo').jplist({
            itemsBox: '.list'
            ,itemPath: '.list-item'
            ,panelPath: '.jplist-panel'
        });

jQuery('.myLink').on( "click", function(e) {
            e.preventDefault();
            jQuery.fillOverlay(index.php?params="");
        });
});

But this javascript only works on the items on the first paginated page. After clicking the pagination and clicking an item then, it fails.

blueamerican commented 7 years ago

it works with the redraw callback