[#49,view][xs]: sort from DataTable working again.
* And this change shows how new setup is nicer (i.e. cleaner) :-)
This commit is contained in:
@@ -323,8 +323,11 @@ my.DataTable = Backbone.View.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
setColumnSort: function(order) {
|
setColumnSort: function(order) {
|
||||||
var query = _.extend(this.model.queryState, {sort: [[this.state.currentColumn, order]]});
|
this.model.query({
|
||||||
this.model.query(query);
|
sort: [
|
||||||
|
[this.state.currentColumn, order]
|
||||||
|
]
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
hideColumn: function() {
|
hideColumn: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user