From e7288a1f0b5e864d122e02b4b79b20ac98c281fd Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 19 Jan 2014 11:58:05 +0530 Subject: [PATCH] pass item name to video panels --- static/js/editor.js | 1 + static/js/player.js | 1 + static/js/timeline.js | 1 + 3 files changed, 3 insertions(+) diff --git a/static/js/editor.js b/static/js/editor.js index ad6b9c85..53b64cb9 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -40,6 +40,7 @@ pandora.ui.editor = function(data) { height: pandora.$ui.contentPanel.size(1), id: 'editor', 'in': ui.videoPoints[ui.item]['in'], + itemName: pandora.site.itemName, layers: data.annotations.map(function(layer) { return Ox.extend({ editable: layer.canAddAnnotations[pandora.user.level] diff --git a/static/js/player.js b/static/js/player.js index 26b4c7f4..f3ff4789 100644 --- a/static/js/player.js +++ b/static/js/player.js @@ -31,6 +31,7 @@ pandora.ui.player = function(data) { }, height: pandora.$ui.contentPanel.size(1), 'in': ui.videoPoints[ui.item]['in'], + itemName: pandora.site.itemName, layers: data.annotations, loop: ui.videoLoop, muted: ui.videoMuted, diff --git a/static/js/timeline.js b/static/js/timeline.js index 46295d53..74eb7716 100644 --- a/static/js/timeline.js +++ b/static/js/timeline.js @@ -31,6 +31,7 @@ pandora.ui.timeline = function(data) { return '/' + ui.item + '/timeline' + type + '64p' + i + '.jpg'; }, height: pandora.$ui.contentPanel.size(1), + itemName: pandora.site.itemName, layers: data.annotations, muted: ui.videoMuted, position: ui.videoPoints[ui.item].position,