From a3fb9d15457c2836a5344e0b9932f2dcce65c301 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 10 Jan 2016 12:02:01 +0530 Subject: [PATCH] fix list display bugs --- static/js/list.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/static/js/list.js b/static/js/list.js index 0d0707d..41943f7 100644 --- a/static/js/list.js +++ b/static/js/list.js @@ -116,22 +116,7 @@ oml.ui.list = function() { oml.UI.set({listSelection: data.ids}); }, oml_find: function() { - /* - that.options({sort: ...}) reloads the list, - but does not update the number of items - */ - if (ui.listView == oml.UI.getPrevious().listView) { - if ( - JSON.stringify(ui.listSort) - == JSON.stringify(oml.UI.getPrevious().listSort) - ) { - that.reloadList(); - } else { - that.options({ - sort: Ox.clone(ui.listSort, true) - }); - } - } + that.reloadList(); }, oml_item: function() { if (!ui.item) {