update the view menu's show entries (breaks info panel)

This commit is contained in:
rolux 2011-10-13 10:12:00 +00:00
parent 56ffec0212
commit 883e9d58e6
13 changed files with 110 additions and 111 deletions

View file

@ -1,11 +1,21 @@
/*
Pan.do/ra Settings
You can edit this file.
*/
{ {
/*
Capabilities are per user level.
They can either be general (true/false)
or related to items (max. item rights level)
*/
"capabilities": { "capabilities": {
"canDeleteItems": {"admin": true}, "canDeleteItems": {"admin": true},
"canEditItemIcons": {"staff": true, "admin": true}, "canEditItemIcons": {"staff": true, "admin": true},
"canPlayClips": {"guest": 1, "member": 2, "friend": 3, "staff": 4, "admin": 4}, "canPlayClips": {"guest": 1, "member": 2, "friend": 3, "staff": 4, "admin": 4},
"canPlayVideo": {"guest": 0, "member": 1, "friend": 3, "staff": 4, "admin": 4}, "canPlayVideo": {"guest": 0, "member": 1, "friend": 3, "staff": 4, "admin": 4},
"canReloadMetadata": {"staff": true, "admin": true}, "canReloadMetadata": {"staff": true, "admin": true},
"canSeeFiles": {"guest": -1, "member": -1, "friend": -1, "staff": 4, "admin": 4}, "canSeeFiles": {"staff": true, "admin": true},
"canSeeItem": {"guest": 2, "member": 2, "friend": 3, "staff": 4, "admin": 4}, "canSeeItem": {"guest": 2, "member": 2, "friend": 3, "staff": 4, "admin": 4},
"canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true} "canSeeExtraItemViews": {"friend": true, "staff": true, "admin": true}
}, },
@ -493,6 +503,15 @@
"importMoviePosters": true, "importMoviePosters": true,
"importPosterFrames": true "importPosterFrames": true
}, },
"personalLists": [
{"id": "favorites", "title": "Favorites"},
{"id": "most_popular", "title": "Most Popular", "query": {}},
{"id": "recently_viewed", "title": "Recently Viewed", "query": {}},
{"id": "1960s", "title": "1960s", "query": {"conditions": [{"key": "year", "value": "196", "operator": "^"}], "operator": "&"}},
{"id": "movies_with_full_video", "title": "Movies with Full Video", "query": {"conditions": [{"key": "canPlayVideo", "value": true, "operator": "="}], "operator": "&"}},
{"id": "movies_with_clips", "title": "Movies with Clips", "query": {"conditions": [{"key": "canPlayClips", "value": true, "operator": "="}], "operator": "&"}},
{"id": "no_tv_series", "title": "No TV Series", "query": {"conditions": [{"key": "isSeries", "value": false, "operator": "="}], "operator": "&"}}
],
"rightsLevel": {"member": 5, "staff": 4, "admin": 3}, "rightsLevel": {"member": 5, "staff": 4, "admin": 3},
"rightsLevels": [ "rightsLevels": [
{"name": "Public", "color": [0, 255, 0], "description": "Everyone can see and play."}, {"name": "Public", "color": [0, 255, 0], "description": "Everyone can see and play."},
@ -503,6 +522,12 @@
], ],
"sendReferrer": false, "sendReferrer": false,
"site": { "site": {
"email": {
// E-mail address in contact form (to)
"contact": "0xdb@0xdb.org",
// E-mail address uses by the system (from)
"system": "0xdb@0xdb.org"
},
"id": "{{settings.SITEID}}", "id": "{{settings.SITEID}}",
"name": "{{settings.SITENAME}}", "name": "{{settings.SITENAME}}",
"url": "{{settings.URL}}" "url": "{{settings.URL}}"
@ -524,28 +549,6 @@
], ],
"user": { "user": {
"level": "guest", "level": "guest",
"lists": {
"common": [
{"id": "all", "title": "All Movies", "query": {}}
],
"personal": [
{"user": "foo", "name": "Favorites", "featured": false, "public": true},
{"id": "favorites", "title": "Favorites", "public": true, "items": []},
{"id": "most_popular", "title": "Most Popular", "query": {}},
{"id": "recently_viewed", "title": "Recently Viewed", "query": {}},
{"id": "1960s", "title": "1960s", "query": {"conditions": [{"key": "year", "value": "196", "operator": "^"}], "operator": "&"}},
{"id": "movies_with_full_video", "title": "Movies with Full Video", "query": {"conditions": [{"key": "canPlayVideo", "value": true, "operator": ""}], "operator": "&"}},
{"id": "movies_with_full_video", "title": "Movies with Clips", "query": {"conditions": [{"key": "canPlayClips", "value": true, "operator": ""}], "operator": "&"}}
],
"favorite": [
{"id": "rlx:watchme", "title": "rlx: watchme", "public": true, "items": [0, 1, 2, 3, 4]}
],
"featured": [
{"id": "situationist_film", "title": "Situationist Film", "query": {}},
{"id": "timelines", "title": "Timelines", "items": [0, 1, 2, 3, 4, 5, 6, 7, 8]}
]
},
"notes": "",
"preferences": {}, "preferences": {},
"ui": { "ui": {
"annotationsSize": 256, "annotationsSize": 256,
@ -580,6 +583,7 @@
"mapSelection": "", "mapSelection": "",
"section": "items", "section": "items",
"showAnnotations": true, "showAnnotations": true,
"showBrowser": true,
"showControls": true, "showControls": true,
"showFlags": true, "showFlags": true,
"showGroups": true, "showGroups": true,
@ -588,7 +592,6 @@
"showInfo": true, "showInfo": true,
"showMapControls": false, "showMapControls": false,
"showMapLabels": false, "showMapLabels": false,
"showMovies": true,
"showFolder": { "showFolder": {
"items": { "items": {
"personal": true, "personal": true,
@ -609,9 +612,7 @@
"videoVolume": 1 "videoVolume": 1
}, },
"username": "", "username": "",
"volumes": [ "volumes": []
{"name": "Movies A-Z", "path": "", "items": 1234}
]
}, },
"userLevels": ["guest", "member", "friend", "staff", "admin"], "userLevels": ["guest", "member", "friend", "staff", "admin"],
"video": { "video": {

View file

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4 # vi:si:et:sw=4:sts=4:ts=4
from __future__ import division, with_statement from __future__ import division, with_statement
import os import os
import sys import sys
import time import time
@ -8,7 +9,7 @@ import thread
from django.db import models from django.db import models
from django.conf import settings from django.conf import settings
from ox.utils import json import ox.jsonc
_win = (sys.platform == "win32") _win = (sys.platform == "win32")
@ -25,7 +26,7 @@ RUN_RELOADER = True
def load_config(): def load_config():
with open(settings.SITE_CONFIG) as f: with open(settings.SITE_CONFIG) as f:
config = json.load(f) config = ox.jsonc.load(f)
config['site']['id'] = settings.SITEID config['site']['id'] = settings.SITEID
config['site']['name'] = settings.SITENAME config['site']['name'] = settings.SITENAME

View file

@ -25,7 +25,7 @@ ADMINS = (
#('admin', 'admin@example.com'), #('admin', 'admin@example.com'),
) )
DEFAULT_FROM_EMAIL='admin@' + URL.split('/')[0] DEFAULT_FROM_EMAIL='system@' + URL.split('/')[0]
#DEFAULT_FROM_EMAIL='admin@example.com' #DEFAULT_FROM_EMAIL='admin@example.com'
SERVER_EMAIL=DEFAULT_FROM_EMAIL SERVER_EMAIL=DEFAULT_FROM_EMAIL
@ -165,21 +165,12 @@ LOGGING = {
AUTH_PROFILE_MODULE = 'user.UserProfile' AUTH_PROFILE_MODULE = 'user.UserProfile'
#Video encoding settings
#available profiles: 96p, 240p, 360p, 480p, 720p, 1080p
SITE_CONFIG = join(PROJECT_ROOT, '0xdb.json') SITE_CONFIG = join(PROJECT_ROOT, '0xdb.jsonc')
DEFAULT_SORT = [{"key": "director", "operator": ""}]
DEFAULT_THEME = "classic"
TRACKER_URL="http://url2torrent.net:6970/announce" TRACKER_URL="http://url2torrent.net:6970/announce"
TRANSMISSON_HOST = 'localhost'
TRANSMISSON_PORT = 9091
TRANSMISSON_USER = 'transmission'
TRANSMISSON_PASSWORD = 'transmission'
#Movie related settings #Movie related settings
REVIEW_WHITELIST = { REVIEW_WHITELIST = {
@ -248,16 +239,3 @@ except NameError:
except IOError: except IOError:
Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE) Exception('Please create a %s file with random characters to generate your secret key!' % SECRET_FILE)
from ox.utils import json
with open(SITE_CONFIG) as f:
CONFIG = json.load(f)
CONFIG['site']['id'] = SITEID
CONFIG['site']['name'] = SITENAME
CONFIG['site']['sectionName'] = SITENAME
CONFIG['site']['url'] = URL
CONFIG['keys'] = {}
for key in CONFIG['itemKeys']:
CONFIG['keys'][key['id']] = key

View file

@ -259,7 +259,7 @@ Ox.FilesView = function(options, self) {
self.$checkbox = Ox.Checkbox({ self.$checkbox = Ox.Checkbox({
checked: false, checked: false,
id: 'go', id: 'go',
title: 'Go to this movie after moving files', // fixme: wrong, can be 'Go to video' etc title: 'Switch to this movie after moving files', // fixme: wrong, can be 'Go to video' etc
width: 240 width: 240
}); });
@ -305,8 +305,8 @@ Ox.FilesView = function(options, self) {
}); });
Ox.Request.clearCache(); // fixme: remove Ox.Request.clearCache(); // fixme: remove
pandora.api.moveFiles(data, function(result) { pandora.api.moveFiles(data, function(result) {
if(self.$checkbox.value()) { if (self.$checkbox.value()) {
pandora.URL.set(result.data.itemId); pandora.UI.set({item: result.data.itemId});
} else { } else {
Ox.print('moved', self.selected, result.data.itemId); Ox.print('moved', self.selected, result.data.itemId);
self.$filesList.reloadList(); self.$filesList.reloadList();

View file

@ -38,7 +38,6 @@ pandora.ui.browser = function() {
toggle: function(data) { toggle: function(data) {
data.collapsed && pandora.$ui.list.gainFocus(); data.collapsed && pandora.$ui.list.gainFocus();
pandora.UI.set({showGroups: !data.collapsed}); pandora.UI.set({showGroups: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_togglegroups').toggleTitle();
if (pandora.user.ui.listView == 'map') { if (pandora.user.ui.listView == 'map') {
pandora.$ui.map.resizeMap(); pandora.$ui.map.resizeMap();
} else if (pandora.user.ui.listView == 'calendar') { } else if (pandora.user.ui.listView == 'calendar') {
@ -101,7 +100,7 @@ pandora.ui.browser = function() {
}); });
}, },
toggle: function(data) { toggle: function(data) {
pandora.UI.set({showMovies: !data.collapsed}); pandora.UI.set({showBrowser: !data.collapsed});
if (data.collapsed) { if (data.collapsed) {
if (pandora.user.ui.itemView == 'timeline') { if (pandora.user.ui.itemView == 'timeline') {
pandora.$ui.editor.gainFocus(); pandora.$ui.editor.gainFocus();

View file

@ -16,11 +16,11 @@ pandora.ui.contentPanel = function() {
} }
] : [ ] : [
{ {
collapsed: !pandora.user.ui.showMovies, collapsed: !pandora.user.ui.showBrowser,
collapsible: true, collapsible: true,
element: pandora.$ui.browser = pandora.ui.browser(), element: pandora.$ui.browser = pandora.ui.browser(),
size: 112 + Ox.UI.SCROLLBAR_SIZE, size: 112 + Ox.UI.SCROLLBAR_SIZE,
tooltip: pandora.site.itemName.plural.toLowerCase() tooltip: pandora.site.itemName.singular.toLowerCase() + ' browser'
}, },
{ {
element: pandora.$ui.item = pandora.ui.item() element: pandora.$ui.item = pandora.ui.item()
@ -39,6 +39,12 @@ pandora.ui.contentPanel = function() {
}, },
pandora_itemview: function() { pandora_itemview: function() {
that.replaceElement(1, pandora.$ui.item = pandora.ui.item()); that.replaceElement(1, pandora.$ui.item = pandora.ui.item());
},
pandora_showbrowser: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0);
},
pandora_showgroups: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0);
} }
}); });
return that; return that;

View file

@ -9,7 +9,6 @@ pandora.ui.info = function() {
.bindEvent({ .bindEvent({
toggle: function(data) { toggle: function(data) {
pandora.UI.set({showInfo: !data.collapsed}); pandora.UI.set({showInfo: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_toggleinfo').toggleTitle();
pandora.resizeFolders(); pandora.resizeFolders();
}, },
pandora_find: function() { pandora_find: function() {
@ -18,7 +17,10 @@ pandora.ui.info = function() {
} }
}, },
pandora_item: updateInfo, pandora_item: updateInfo,
pandora_listselection: updateInfo pandora_listselection: updateInfo,
pandora_showinfo: function(data) {
pandora.resizeFolders();
}
}); });
//pandora.$ui.leftPanel && resize(); //pandora.$ui.leftPanel && resize();

View file

@ -267,6 +267,9 @@ pandora.ui.item = function() {
volume: function(data) { volume: function(data) {
pandora.UI.set('volume', data.volume); pandora.UI.set('volume', data.volume);
}, },
pandora_showannotations: function(data) {
pandora.$ui.player.options({showAnnotations: data.value});
}
})); }));
} else if (pandora.user.ui.itemView == 'timeline') { } else if (pandora.user.ui.itemView == 'timeline') {
@ -360,6 +363,9 @@ pandora.ui.item = function() {
Ox.print('done updateAnnotation', result); Ox.print('done updateAnnotation', result);
}); });
},
pandora_showannotations: function(data) {
pandora.$ui.editor.options({showAnnotations: data.value});
} }
})); }));
that.bindEvent('resize', function(data) { that.bindEvent('resize', function(data) {

View file

@ -45,12 +45,14 @@ pandora.ui.leftPanel = function() {
}, },
toggle: function(data) { toggle: function(data) {
pandora.UI.set({showSidebar: !data.collapsed}); pandora.UI.set({showSidebar: !data.collapsed});
pandora.$ui.mainMenu.getItem('viewMenu_togglelists').toggleTitle();
if (data.collapsed) { if (data.collapsed) {
Ox.forEach(pandora.$ui.folderList, function($list) { Ox.forEach(pandora.$ui.folderList, function($list) {
$list.loseFocus(); $list.loseFocus();
}); });
} }
},
pandora_showinfo: function(data) {
data.value == that.options('elements')[1].collapsed && that.toggle(1);
} }
}); });
return that; return that;

View file

@ -9,7 +9,7 @@ pandora.ui.mainPanel = function() {
resizable: true, resizable: true,
resize: [192, 256, 320, 384], resize: [192, 256, 320, 384],
size: pandora.user.ui.sidebarSize, size: pandora.user.ui.sidebarSize,
tooltip: 'lists' tooltip: 'sidebar'
}, },
{ {
element: pandora.$ui.rightPanel = pandora.ui.rightPanel() element: pandora.$ui.rightPanel = pandora.ui.rightPanel()
@ -44,6 +44,9 @@ pandora.ui.mainPanel = function() {
if (!data.value || !data.previousValue) { if (!data.value || !data.previousValue) {
that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel()); that.replaceElement(1, pandora.$ui.rightPanel = pandora.ui.rightPanel());
} }
},
pandora_showsidebar: function(data) {
data.value == that.options('elements')[0].collapsed && that.toggle(0);
} }
}); });
return that; return that;

View file

@ -94,33 +94,11 @@ pandora.ui.mainMenu = function() {
{ id: 'resetgroups', title: 'Reset Groups' } { id: 'resetgroups', title: 'Reset Groups' }
] }, ] },
{}, {},
{ { id: 'showsidebar', title: (ui.showSidebar ? 'Hide' : 'Show') + ' Sidebar', keyboard: 'shift s' },
id: 'togglelists', { id: 'showinfo', title: (ui.showInfo ? 'Hide' : 'Show') + ' Info', keyboard: 'shift i' },
title: Ox.map([pandora.user.ui.showSidebar? 'Hide': 'Show', { id: 'showgroups', title: (ui.showGroups ? 'Hide' : 'Show') + ' Groups', disabled: !!ui.item, keyboard: 'shift g' },
pandora.user.ui.showSidebar? 'Show': 'Hide' ], { id: 'showbrowser', title: (ui.showBrowser ? 'Hide' : 'Show') + ' ' + pandora.site.itemName.singular + ' Browser', disabled: !ui.item, keyboard: 'shift b' },
function(t) { return t + ' Lists'; } ), { id: 'showannotations', title: (ui.showAnnotations ? 'Hide' : 'Show') + ' Annotations', disabled: !ui.item || ['timeline', 'video'].indexOf(ui.itemView) == -1, keyboard: 'shift a' },
keyboard: 'shift l'
},
{
id: 'toggleinfo',
title: Ox.map([pandora.user.ui.showInfo? 'Hide': 'Show',
pandora.user.ui.showInfo? 'Show': 'Hide' ],
function(t) { return t + ' Info'; } ),
keyboard: 'shift i'
},
{
id: 'togglegroups',
title: Ox.map([pandora.user.ui.showGroups? 'Hide': 'Show',
pandora.user.ui.showGroups? 'Show': 'Hide' ],
function(t) { return t + ' Groups'; } ),
keyboard: 'shift g'
},
{
id: 'movies', title:
'Hide ' + pandora.site.itemName.plural,
disabled: true,
keyboard: 'shift m'
},
{}, {},
{ id: 'theme', title: 'Theme', items: [ { id: 'theme', title: 'Theme', items: [
{ group: 'settheme', min: 1, max: 1, items: [ { group: 'settheme', min: 1, max: 1, items: [
@ -238,12 +216,16 @@ pandora.ui.mainMenu = function() {
pandora.ui.listDialog().open(); pandora.ui.listDialog().open();
} else if (data.id == 'deletelist') { } else if (data.id == 'deletelist') {
pandora.ui.deleteListDialog().open(); pandora.ui.deleteListDialog().open();
} else if (data.id == 'stills') { } else if (data.id == 'showsidebar') {
var id = pandora.user.ui.item || pandora.user.ui.listItem; pandora.UI.set({showSidebar: !ui.showSidebar});
pandora.$ui.postersDialog = pandora.ui.framesDialog(id).open(); } else if (data.id == 'showinfo') {
} else if (data.id == 'posters') { pandora.UI.set({showInfo: !ui.showInfo});
var id = pandora.user.ui.item || pandora.user.ui.listItem; } else if (data.id == 'showgroups') {
pandora.$ui.postersDialog = pandora.ui.postersDialog(id).open(); pandora.UI.set({showGroups: !ui.showGroups});
} else if (data.id == 'showbrowser') {
pandora.UI.set({showBrowser: !ui.showBrowser});
} else if (data.id == 'showannotations') {
pandora.UI.set({showAnnotations: !ui.showAnnotations});
} else if (data.id == 'names') { } else if (data.id == 'names') {
pandora.$ui.namesDialog = pandora.ui.namesDialog().open(); pandora.$ui.namesDialog = pandora.ui.namesDialog().open();
} else if (data.id == 'titles') { } else if (data.id == 'titles') {
@ -267,15 +249,6 @@ pandora.ui.mainMenu = function() {
}); });
} else if (data.id == 'clearcache') { } else if (data.id == 'clearcache') {
Ox.Request.clearCache(); Ox.Request.clearCache();
} else if (data.id == 'togglegroups') {
that.getItem('viewMenu_togglegroups').toggleTitle();
pandora.$ui.contentPanel.toggle(0);
} else if (data.id == 'toggleinfo') {
that.getItem('viewMenu_toggleinfo').toggleTitle();
pandora.$ui.leftPanel.toggle(2);
} else if (data.id == 'togglelists') {
that.getItem('viewMenu_togglelists').toggleTitle();
pandora.$ui.mainPanel.toggle(0);
} }
}, },
pandora_find: function() { pandora_find: function() {
@ -285,7 +258,20 @@ pandora.ui.mainMenu = function() {
that[action]('editlist'); that[action]('editlist');
that[action]('duplicatelist'); that[action]('duplicatelist');
that[action]('deletelist'); that[action]('deletelist');
that[pandora.user.ui.listSelection.length ? 'enableItem' : 'disableItem']('newlistfromselection'); that[ui.listSelection.length ? 'enableItem' : 'disableItem']('newlistfromselection');
},
pandora_item: function(data) {
if (!!data.value != !!data.previousValue) {
that[data.value ? 'disableItem' : 'enableItem']('showgroups');
that[data.value ? 'enableItem' : 'disableItem']('showbrowser');
}
},
pandora_itemview: function(data) {
var isVideoView = ['video', 'timeline'].indexOf(data.value) > 1,
wasVideoView = ['video', 'timeline'].indexOf(data.previousValue) > 1;
if (isVideoView != wasVideoView) {
that[isVideoView ? 'enableItem' : 'disableItem']('showannotations');
}
}, },
pandora_listselection: function(data) { pandora_listselection: function(data) {
that[data.value.length ? 'enableItem' : 'disableItem']('newlistfromselection'); that[data.value.length ? 'enableItem' : 'disableItem']('newlistfromselection');
@ -295,6 +281,21 @@ pandora.ui.mainMenu = function() {
if (pandora.isClipView() != pandora.isClipView(data.previousValue)) { if (pandora.isClipView() != pandora.isClipView(data.previousValue)) {
that.replaceMenu('sortMenu', getSortMenu()); that.replaceMenu('sortMenu', getSortMenu());
} }
},
pandora_showannotations: function(data) {
that.setItemTitle('showannotations', (data.value ? 'Hide' : 'Show') + ' Annotations');
},
pandora_showbrowser: function(data) {
that.setItemTitle('showbrowser', (data.value ? 'Hide' : 'Show') + ' ' + pandora.site.itemName.singular + ' Browser');
},
pandora_showgroups: function(data) {
that.setItemTitle('showgroups', (data.value ? 'Hide' : 'Show') + ' Groups');
},
pandora_showinfo: function(data) {
that.setItemTitle('showinfo', (data.value ? 'Hide' : 'Show') + ' Info');
},
pandora_showsidebar: function(data) {
that.setItemTitle('showsidebar', (data.value ? 'Hide' : 'Show') + ' Sidebar');
} }
}); });

View file

@ -396,10 +396,10 @@ pandora.enterFullscreen = function() {
pandora.$ui.appPanel.size(0, 0); pandora.$ui.appPanel.size(0, 0);
pandora.user.ui.showSidebar && pandora.$ui.mainPanel.size(0, 0); pandora.user.ui.showSidebar && pandora.$ui.mainPanel.size(0, 0);
pandora.$ui.rightPanel.size(0, 0).size(2, 0); pandora.$ui.rightPanel.size(0, 0).size(2, 0);
!pandora.user.ui.showMovies && pandora.$ui.contentPanel.css({ !pandora.user.ui.showBrowser && pandora.$ui.contentPanel.css({
top: (-112 - Ox.UI.SCROLLBAR_SIZE) + 'px' // fixme: rightPanel.size(0, 0) doesn't preserve negative top of browser top: (-112 - Ox.UI.SCROLLBAR_SIZE) + 'px' // fixme: rightPanel.size(0, 0) doesn't preserve negative top of browser
}); });
pandora.user.ui.showMovies && pandora.$ui.contentPanel.size(0, 0); pandora.user.ui.showBrowser && pandora.$ui.contentPanel.size(0, 0);
pandora.$ui.player.options({ pandora.$ui.player.options({
height: pandora.$document.height() - 2, height: pandora.$document.height() - 2,
width: pandora.$document.width() - 2 width: pandora.$document.width() - 2
@ -410,10 +410,10 @@ pandora.exitFullscreen = function() {
pandora.$ui.appPanel.size(0, 20); pandora.$ui.appPanel.size(0, 20);
pandora.user.ui.showSidebar && pandora.$ui.mainPanel.size(0, pandora.user.ui.sidebarSize); pandora.user.ui.showSidebar && pandora.$ui.mainPanel.size(0, pandora.user.ui.sidebarSize);
pandora.$ui.rightPanel.size(0, 24).size(2, 16); pandora.$ui.rightPanel.size(0, 24).size(2, 16);
!pandora.user.ui.showMovies && pandora.$ui.contentPanel.css({ !pandora.user.ui.showBrowser && pandora.$ui.contentPanel.css({
top: 24 + (-112 - Ox.UI.SCROLLBAR_SIZE) + 'px' // fixme: rightPanel.size(0, 0) doesn't preserve negative top of browser top: 24 + (-112 - Ox.UI.SCROLLBAR_SIZE) + 'px' // fixme: rightPanel.size(0, 0) doesn't preserve negative top of browser
}); });
pandora.user.ui.showMovies && pandora.$ui.contentPanel.size(0, 112 + Ox.UI.SCROLLBAR_SIZE); pandora.user.ui.showBrowser && pandora.$ui.contentPanel.size(0, 112 + Ox.UI.SCROLLBAR_SIZE);
}; };
pandora.getFoldersHeight = function() { pandora.getFoldersHeight = function() {