make browser lose focus on collapse

This commit is contained in:
rolux 2011-01-03 14:00:43 +00:00
parent f34dfb7e95
commit 1979f4d418

View file

@ -539,11 +539,16 @@ var pandora = new Ox.App({
id: 'browser', id: 'browser',
orientation: 'horizontal' orientation: 'horizontal'
}) })
.bindEvent('resize', function(event, data) { .bindEvent({
Ox.print('resizing groups...') resize: function(event, data) {
$.each(app.$ui.groups, function(i, list) { Ox.print('resizing groups...')
list.size(); $.each(app.$ui.groups, function(i, list) {
}); list.size();
});
},
toggle: function(event, data) {
data.collapsed && app.$ui.list.gainFocus();
}
}); });
} else { } else {
var that = new Ox.IconList({ var that = new Ox.IconList({
@ -582,6 +587,13 @@ var pandora = new Ox.App({
}, },
select: function(event, data) { select: function(event, data) {
URL.set(data.ids[0]); URL.set(data.ids[0]);
},
toggle: function(event, data) {
if (data.collapsed) {
if (app.user.ui.itemView == 'timeline') {
app.$ui.editor.gainFocus();
}
}
} }
}); });
} }