forked from 0x2620/pandora
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() {
|
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({
|
pandora.api.tv({
|
||||||
list: list
|
list: list
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
var videoOptions = pandora.getVideoOptions(result.data);
|
var videoOptions = pandora.getVideoOptions(result.data);
|
||||||
|
$loading.remove();
|
||||||
$player && $player.remove();
|
$player && $player.remove();
|
||||||
$player = Ox.VideoPlayer({
|
$player = Ox.VideoPlayer({
|
||||||
censored: videoOptions.censored,
|
censored: videoOptions.censored,
|
||||||
|
|
Loading…
Reference in a new issue