drvic10k / bootstrap-sortable

adding sorting ability to bootstrap table
MIT License
513 stars 131 forks source link

applyLast doesn't work #83

Closed soisme closed 8 years ago

soisme commented 8 years ago

How does applyLast work? It doesn't remember my sort preference after I refresh the page or make a new ajax call.

Is there a way to add the sort preference to cookie?

$("table").on('sorted', function () {
    ///add to cookie code here
});
drvic10k commented 8 years ago

the sort preference is not kept after page refresh, but it should be after the ajax call

if you want to store the sorting state in cookie, look at the lookupSortContext function, you can get the context from the table the same way and store it in the cookie

drvic10k commented 8 years ago

did you solve it? can I close the issue now?

soisme commented 8 years ago

yea just close the issue.