From 4daa931a3c784b00535eb28b9ac88248f76300aa Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 23 Apr 2012 08:57:52 +0000 Subject: [PATCH] add loading icon to tv, fixes #765 --- static/js/pandora/tv.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/static/js/pandora/tv.js b/static/js/pandora/tv.js index 6cf8a36d..27340fcc 100644 --- a/static/js/pandora/tv.js +++ b/static/js/pandora/tv.js @@ -39,10 +39,20 @@ pandora.ui.tv = function() { } function play() { + var $loading = $('') + .attr({src: Ox.UI.getImageURL('symbolLoadingAnimated')}) + .css({ + position: 'absolute', + left: 0, top: 0, right: 0, bottom: 0, + width: '32px', height: '32px', + margin: 'auto' + }) + .appendTo(that); pandora.api.tv({ list: list }, function(result) { var videoOptions = pandora.getVideoOptions(result.data); + $loading.remove(); $player && $player.remove(); $player = Ox.VideoPlayer({ censored: videoOptions.censored,