update browser list if sort is 'accessed' or 'timesaccessed'

This commit is contained in:
rolux 2013-02-11 14:48:18 +05:30
parent 6dbd713fef
commit 9781276353

View file

@ -160,6 +160,10 @@ pandora.ui.browser = function() {
}, },
pandora_item: function(data) { pandora_item: function(data) {
that.options({selected: [data.value]}); that.options({selected: [data.value]});
if (['accessed', 'timesaccessed'].indexOf(pandora.user.ui.listSort[0].key) > -1) {
Ox.Request.clearCache();
that.reloadList(true);
}
}, },
pandora_listsort: function() { pandora_listsort: function() {
that.options({sort: getSort()}) that.options({sort: getSort()})