javve / list.pagination.js

A pagination plugin for List.js
24 stars 23 forks source link

Edit elements in hidden pages #20

Closed maca91 closed 8 years ago

maca91 commented 8 years ago

Hi, I'm using list.js and list.pagination.js for a small media manager. First: your plugin is awesome! My issue: I have a list of elements, that are views in a certain number of pages. Those elements can be "checked" with a click (it is change a class of element). For "multiple select" I haven't problems. With single select, I need to de-select previous element and select current clicked. But how to edit previous selected element if it is in a hidden page? from code, I understand that elements of hidden pages are removed from DOM and they are inaccessible

maca91 commented 8 years ago

SOLVED: I get previous element with .get. I didn't know that it was possibile get entire javascript object with this function. Simply AMAZING. Thank you