diff --git a/apps/common/main/lib/component/ListView.js b/apps/common/main/lib/component/ListView.js index c23ff7584b..7cc118100a 100644 --- a/apps/common/main/lib/component/ListView.js +++ b/apps/common/main/lib/component/ListView.js @@ -66,39 +66,52 @@ define([ ].join('')), initialize : function(options) { - Common.UI.DataView.prototype.initialize.call(this, options); - if(this.options.initSort != null) { this.activeSortType = this.options.initSort.type; this.sortDirection = this.options.initSort.direction; } + Common.UI.DataView.prototype.initialize.call(this, options); }, + render: function() { + Common.UI.DataView.prototype.render.call(this); + this.insertHeaders(); + }, + insertHeaders: function() { if(this.options.headers.length == 0) return; var template = _.template([ - '