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

update slider

This commit is contained in:
Luke Pulverenti 2016-10-21 00:28:32 -04:00
parent 140c6917b5
commit 5d73cc65f5
8 changed files with 128 additions and 95 deletions

View file

@ -1,4 +1,4 @@
define(['appSettings', 'datetime', 'jQuery', 'emby-slider', 'emby-button'], function (appSettings, datetime, $) {
define(['appSettings', 'datetime', 'jQuery', 'actionsheet', 'emby-slider', 'emby-button'], function (appSettings, datetime, $, actionsheet) {
function getDeviceProfile(serverAddress, deviceId, item, startPositionTicks, maxBitrate, mediaSourceId, audioStreamIndex, subtitleStreamIndex) {
@ -334,21 +334,17 @@
function showMenuForItem(item, players) {
require(['actionsheet'], function (actionsheet) {
actionsheet.show({
items: players
}).then(function (id) {
var player = players.filter(function (p) {
return p.id == id;
})[0];
actionsheet.show({
items: players,
callback: function (id) {
var player = players.filter(function (p) {
return p.id == id;
})[0];
if (player) {
window.open(player.url, '_blank');
onPlaybackStart();
}
}
});
if (player) {
window.open(player.url, '_blank');
onPlaybackStart();
}
});
}