[#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:
Rufus Pollock 2012-02-17 23:10:03 +00:00
parent 866ad12a15
commit 5f5fafbb22

View File

@ -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() {