recreate list on list change, to avoid doulbe reload if list sort changes too
This commit is contained in:
parent
b4f42256d8
commit
e0c2ccbb24
2 changed files with 5 additions and 1 deletions
|
@ -144,7 +144,8 @@ oml.ui.list = function() {
|
||||||
oml.UI.set({listSelection: data.ids});
|
oml.UI.set({listSelection: data.ids});
|
||||||
},
|
},
|
||||||
oml_find: function() {
|
oml_find: function() {
|
||||||
that.reloadList();
|
// list gets recreated in listPanel to avoid double reload if list and listSort changes
|
||||||
|
// that.reloadList();
|
||||||
},
|
},
|
||||||
oml_item: function() {
|
oml_item: function() {
|
||||||
if (!ui.item) {
|
if (!ui.item) {
|
||||||
|
|
|
@ -27,6 +27,9 @@ oml.ui.listPanel = function() {
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
oml_find: function() {
|
||||||
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
||||||
|
},
|
||||||
oml_listview: function() {
|
oml_listview: function() {
|
||||||
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
that.replaceElement(1, oml.$ui.list = oml.ui.list());
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue