[#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:
parent
866ad12a15
commit
5f5fafbb22
@ -323,8 +323,11 @@ my.DataTable = Backbone.View.extend({
|
||||
},
|
||||
|
||||
setColumnSort: function(order) {
|
||||
var query = _.extend(this.model.queryState, {sort: [[this.state.currentColumn, order]]});
|
||||
this.model.query(query);
|
||||
this.model.query({
|
||||
sort: [
|
||||
[this.state.currentColumn, order]
|
||||
]
|
||||
});
|
||||
},
|
||||
|
||||
hideColumn: function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user