make browser lose focus on collapse
This commit is contained in:
parent
320bd927ea
commit
a3d3ee9e56
1 changed files with 17 additions and 5 deletions
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue