add loading icon to tv, fixes #765
This commit is contained in:
parent
970ebe506f
commit
4daa931a3c
1 changed files with 10 additions and 0 deletions
|
@ -39,10 +39,20 @@ pandora.ui.tv = function() {
|
|||
}
|
||||
|
||||
function play() {
|
||||
var $loading = $('<img>')
|
||||
.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,
|
||||
|
|
Loading…
Reference in a new issue