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

View File

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