1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes #562 - Integrate nesbox/snesbox into web client

This commit is contained in:
Luke Pulverenti 2013-10-26 19:19:26 -04:00
parent a1c3ebb854
commit 8140e361fb
6 changed files with 110 additions and 4 deletions

View file

@ -64,9 +64,22 @@
}
if (MediaPlayer.canPlay(item) && item.LocationType !== "Offline" && item.LocationType !== "Virtual") {
$('#playButtonContainer', page).show();
var url = MediaPlayer.getPlayUrl(item);
if (url) {
$('#playExternalButtonContainer', page).show();
$('#playButtonContainer', page).hide();
} else {
$('#playButtonContainer', page).show();
$('#playExternalButtonContainer', page).hide();
}
$('#btnPlayExternal', page).attr('href', url || '#');
} else {
$('#playButtonContainer', page).hide();
$('#playExternalButtonContainer', page).hide();
}
$(".autoNumeric").autoNumeric('init');