drvic10k / bootstrap-sortable

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

Store separate sort context for each table #48

Closed mattbrictson closed 10 years ago

mattbrictson commented 10 years ago

This simple change moves the bsSort and lastSort variables into a per-table context object. This ensures that each table on the page will have its own context. It prevents the bsSort data from one table from colliding with the bsSort data of another table, which causes odd behavior.

This should fix the problems mentioned in #46.