dont overwrite guest session, set ui._ once

This commit is contained in:
rolux 2011-11-04 15:56:38 +00:00
commit d54463474e
2 changed files with 6 additions and 19 deletions

View file

@ -14,7 +14,7 @@ appPanel
contentPanel
browser <-- should be filters or browser
list or item
statusbar
statusbar <-- make part of content panel
*/
(function() {
@ -199,9 +199,13 @@ appPanel
})
},
site: data.site,
user: data.user.level == 'guest' ? Ox.clone(data.site.user) : data.user
user: data.user
});
pandora.user.ui = Ox.extend(
Ox.clone(pandora.site.user.ui), pandora.user.ui
);
Ox.extend(pandora.site, {
clipKeys: Ox.map(data.site.clipKeys, function(key) {
return Ox.extend(key, {