make browser lose focus on collapse
This commit is contained in:
parent
f34dfb7e95
commit
1979f4d418
1 changed files with 17 additions and 5 deletions
|
@ -539,11 +539,16 @@ var pandora = new Ox.App({
|
|||
id: 'browser',
|
||||
orientation: 'horizontal'
|
||||
})
|
||||
.bindEvent('resize', function(event, data) {
|
||||
.bindEvent({
|
||||
resize: function(event, data) {
|
||||
Ox.print('resizing groups...')
|
||||
$.each(app.$ui.groups, function(i, list) {
|
||||
list.size();
|
||||
});
|
||||
},
|
||||
toggle: function(event, data) {
|
||||
data.collapsed && app.$ui.list.gainFocus();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
var that = new Ox.IconList({
|
||||
|
@ -582,6 +587,13 @@ var pandora = new Ox.App({
|
|||
},
|
||||
select: function(event, data) {
|
||||
URL.set(data.ids[0]);
|
||||
},
|
||||
toggle: function(event, data) {
|
||||
if (data.collapsed) {
|
||||
if (app.user.ui.itemView == 'timeline') {
|
||||
app.$ui.editor.gainFocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue