forked from 0x2620/pandora
clean up ui settings on load; make show/hide video timeline work via menu and keyboard
This commit is contained in:
parent
49d13a1a78
commit
8caa57d33e
4 changed files with 28 additions and 5 deletions
|
|
@ -204,9 +204,16 @@ appPanel
|
|||
user: data.user
|
||||
});
|
||||
|
||||
// make sure all valid ui settings are present
|
||||
pandora.user.ui = Ox.extend(
|
||||
Ox.clone(pandora.site.user.ui), pandora.user.ui
|
||||
);
|
||||
// make sure no invalid ui settings are present
|
||||
Object.keys(pandora.user.ui).forEach(function(key) {
|
||||
if (Ox.isUndefined(pandora.site.user.ui[key])) {
|
||||
delete pandora.user.ui[key];
|
||||
}
|
||||
});
|
||||
|
||||
Ox.extend(pandora.site, {
|
||||
clipKeys: Ox.map(data.site.clipKeys, function(key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue