forked from 0x2620/pandora
remember groups size after item view
This commit is contained in:
parent
821934dc8a
commit
bdd0f7a17c
1 changed files with 2 additions and 1 deletions
|
@ -541,12 +541,13 @@ var pandora = new Ox.App({
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
resize: function(event, data) {
|
resize: function(event, data) {
|
||||||
Ox.print('resizing groups...')
|
app.user.ui.groupsSize = data;
|
||||||
$.each(app.$ui.groups, function(i, list) {
|
$.each(app.$ui.groups, function(i, list) {
|
||||||
list.size();
|
list.size();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
toggle: function(event, data) {
|
toggle: function(event, data) {
|
||||||
|
app.user.ui.showGroups = !data.collapsed;
|
||||||
data.collapsed && app.$ui.list.gainFocus();
|
data.collapsed && app.$ui.list.gainFocus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue