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
commit e0c2ccbb24
2 changed files with 5 additions and 1 deletions

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());
},