From 8b92595d1de3c5ea2427a1b66d29818f0643e4ad Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 29 Dec 2012 17:40:02 +0100 Subject: [PATCH] add 'OxMedia' class to grid, info lists, clip list and browser --- static/js/pandora/browser.js | 1 + static/js/pandora/clipList.js | 1 + static/js/pandora/list.js | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/browser.js b/static/js/pandora/browser.js index 96bdb9bf4..72a53f0e2 100644 --- a/static/js/pandora/browser.js +++ b/static/js/pandora/browser.js @@ -118,6 +118,7 @@ pandora.ui.browser = function() { ? pandora.site.user.ui.listSort: pandora.user.ui.listSort, unique: 'id' }) + .addClass('OxMedia') .bindEvent({ open: function() { that.scrollToSelection(); diff --git a/static/js/pandora/clipList.js b/static/js/pandora/clipList.js index 24c87ed5d..1cd6aa647 100644 --- a/static/js/pandora/clipList.js +++ b/static/js/pandora/clipList.js @@ -109,6 +109,7 @@ pandora.ui.clipList = function(videoRatio) { sort: !ui.item ? ui.listSort : ui.itemSort, unique: 'id' }) + .addClass('OxMedia') .bindEvent({ init: function(data) { if (!ui.item && ui.listView == 'clip'/* && pandora.$ui.statusbar*/) { diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index b5b7c9315..0b98d0023 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -166,7 +166,8 @@ pandora.ui.list = function() { size: 128, sort: pandora.user.ui.listSort, unique: 'id' - }); + }) + .addClass('OxMedia'); } else if (view == 'info') { that = Ox.Element().css({margin: '16px'}).html(view + ' results view still missing.'); } else if (view == 'clips') { @@ -239,6 +240,7 @@ pandora.ui.list = function() { - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - Ox.UI.SCROLLBAR_SIZE }) + .addClass('OxMedia') .bindEvent({ key_left: function() { // ...