jplist icon indicating copy to clipboard operation
jplist copied to clipboard

$('#search').jplist({ command: 'empty' }); doesn't clear the pagination status

Open mistyn8 opened this issue 8 years ago • 1 comments

if we fill the results with $('#search').jplist({ command: 'add', commandData: { $items: $('#search-result-list') } }); and then view page 2, via bootsrtap pagination control then empty with $('#search').jplist({ command: 'empty' });

if we then refill with a different result again using $('#search').jplist({ command: 'add', commandData: { $items: $('#search-result-list') } });

we end up on page 2.. when should really be page 1?

mistyn8 avatar Mar 23 '17 13:03 mistyn8

noticed that it behaves like this for any change of state in pagination/filter/toggle/keyword etc..

data-jump-to-start="true"

seems to resolve for the control state changes, haven't had chance to check the empty funct.

mistyn8 avatar Mar 28 '17 11:03 mistyn8