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:
parent
5d4ed8ffbc
commit
8667beb123
1 changed files with 7 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue