ashl1 / datatables-rowsgroup

The Datatables feature plugin that groups rows (merge cells vertically) in according to specified columns.
Other
95 stars 94 forks source link

table.draw() -> have ,,DESC" to ,,ASC" or have "ASC" to "DESC" FIXES #24

Closed wgerro closed 5 years ago

wgerro commented 5 years ago

[line: 169] _toogleDirection: function(dir) { return dir == 'asc'? 'desc': 'asc'; },

to:

_toogleDirection: function(dir) { return dir == 'asc'? 'asc': 'desc'; },

If I have a order: [[0, 'desc']] and I want to call table.draw () then it changes to 'ASC' . This function _toggleDirection is unnecessary.