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) {
|
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();
|
||||||
|
|
Loading…
Reference in a new issue