[MERGE] trunk-bug-1094839-vja: in listview, sorting arrow disappearing from column header when the user change of the view and return on listview.

bzr revid: chm@openerp.com-20130103092823-jbjhh686vix52ih6
This commit is contained in:
Christophe Matthieu 2013-01-03 10:28:23 +01:00
parent f659d305f7
commit 11db0f89fe
1 changed files with 8 additions and 0 deletions

View File

@ -348,6 +348,14 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
this.sidebar.add_toolbar(this.fields_view.toolbar);
this.sidebar.$el.hide();
}
//Sort
if(this.dataset._sort.length){
if(this.dataset._sort[0].indexOf('-') == -1){
this.$el.find('th[data-id=' + this.dataset._sort[0] + ']').addClass("sortdown");
}else {
this.$el.find('th[data-id=' + this.dataset._sort[0].split('-')[1] + ']').addClass("sortup");
}
}
this.trigger('list_view_loaded', data, this.grouped);
},
sort_by_column: function (e) {