this.waiting = false;\r
},\r
\r
- render: function (override_channels) {\r
+ render: function () {\r
var table = $('table', this.$el),\r
tbody = table.children('tbody:first').detach(),\r
that = this,\r
\r
this.sorting_channels = false;\r
\r
- if (override_channels !== undefined) {\r
- that.channels = override_channels;\r
- tbody.remove();\r
- this.sorting_channels = true;\r
- } else {\r
- this.channels = this.sortChannels(this.channels, this.order);\r
- }\r
+ this.channels = this.sortChannels(this.channels, this.order);\r
\r
// Create the sort icon container and clean previous any previous ones\r
if($('.applet_chanlist .users_title').find('span.chanlist_sort_users').length == 0) {\r
},\r
\r
sortChannelsClick: function(order) {\r
- var that = this,\r
- channels = this.sortChannels(that.channels, order);\r
+ this.channels = this.sortChannels(this.channels, order);\r
\r
- this.render(channels);\r
+ this.render();\r
},\r
\r
sortChannels: function (channels, order) {\r