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) {
oml.UI.set({
item: data.ids[0],
itemView: 'info',
listSelection: data.ids
});
if (ui.item) {
oml.UI.set({
item: data.ids[0],
itemView: 'info',
listSelection: data.ids
});
}
},
oml_find: function() {
that.reloadList();