fix list display bugs

This commit is contained in:
rlx 2016-01-10 12:02:01 +05:30
parent f9c04d4c4c
commit a3fb9d1545

View file

@ -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)
});
}
}
},
oml_item: function() {
if (!ui.item) {