recreate list on list change, to avoid doulbe reload if list sort changes too

This commit is contained in:
j 2017-07-13 10:49:34 +02:00
parent b4f42256d8
commit e0c2ccbb24
2 changed files with 5 additions and 1 deletions

View file

@ -144,7 +144,8 @@ oml.ui.list = function() {
oml.UI.set({listSelection: data.ids});
},
oml_find: function() {
that.reloadList();
// list gets recreated in listPanel to avoid double reload if list and listSort changes
// that.reloadList();
},
oml_item: function() {
if (!ui.item) {

View file

@ -27,6 +27,9 @@ oml.ui.listPanel = function() {
orientation: 'vertical'
})
.bindEvent({
oml_find: function() {
that.replaceElement(1, oml.$ui.list = oml.ui.list());
},
oml_listview: function() {
that.replaceElement(1, oml.$ui.list = oml.ui.list());
},