From c97c6e316911acd9f440493b3e203d7d11c8fdec Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 25 Aug 2011 19:24:02 +0000 Subject: [PATCH] fixing a bug where item editor view would be off after movies browser toggle --- static/js/pandora.js | 4 +++- static/js/pandora/ui/home.js | 5 +++++ static/js/pandora/ui/item.js | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index a1de4e1f..8a55cf14 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -30,7 +30,7 @@ Ox.load('Geo', function() { loadResources('/static/json/pandora.json', function() { Ox.print('Ox.App load', data); - Ox.UI.hideLoadingScreen(); + // Ox.UI.hideLoadingScreen(); Ox.extend(pandora, { $ui: { @@ -95,6 +95,8 @@ Ox.load('Geo', function() { pandora.URL.update(); }; + Ox.UI.hideLoadingScreen(); + Ox.Theme(pandora.user.ui.theme); pandora.$ui.appPanel = pandora.ui.appPanel().display(); diff --git a/static/js/pandora/ui/home.js b/static/js/pandora/ui/home.js index 615bdf63..30f9eba8 100644 --- a/static/js/pandora/ui/home.js +++ b/static/js/pandora/ui/home.js @@ -37,6 +37,11 @@ pandora.ui.home = function() { width: '320px', height: '160px', margin: 'auto', + }) + .css({ + backgroundImage: '-moz-linear-gradient(top, rgba(32, 32, 32, 0.8), rgba(32, 32, 32, 1), rgba(32, 32, 32, 1))' + }) + .css({ backgroundImage: '-webkit-linear-gradient(top, rgba(32, 32, 32, 0.8), rgba(32, 32, 32, 1), rgba(32, 32, 32, 1))' }) .appendTo(that), diff --git a/static/js/pandora/ui/item.js b/static/js/pandora/ui/item.js index 623e75af..e2e40cf0 100644 --- a/static/js/pandora/ui/item.js +++ b/static/js/pandora/ui/item.js @@ -361,7 +361,7 @@ pandora.ui.item = function() { videoSize: pandora.user.ui.videoSize, width: pandora.$ui.document.width() - pandora.$ui.mainPanel.size(0) - 1 }).bindEvent({ - resize: function(data) { + resize: function(event, data) { pandora.$ui.editor.options({ height: data });