when browser selection changes, only set ui.item if in item view (avoids weird flip-to-item behaviour when changing lists)

This commit is contained in:
Rolux 2016-01-08 10:14:12 +05:30
parent 5d4ed8ffbc
commit 8667beb123

View file

@ -88,11 +88,13 @@ oml.ui.browser = function() {
} }
}, },
select: function(data) { select: function(data) {
if (ui.item) {
oml.UI.set({ oml.UI.set({
item: data.ids[0], item: data.ids[0],
itemView: 'info', itemView: 'info',
listSelection: data.ids listSelection: data.ids
}); });
}
}, },
oml_find: function() { oml_find: function() {
that.reloadList(); that.reloadList();