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

update popups

This commit is contained in:
Luke Pulverenti 2015-12-02 22:20:52 -05:00
parent ae5ccc79dc
commit a5be57afdc
19 changed files with 255 additions and 78 deletions

View file

@ -64,7 +64,7 @@
});
}
function showPlayerSelection() {
function showPlayerSelection(button) {
var playerInfo = MediaController.getPlayerInfo();
@ -73,7 +73,7 @@
return;
}
Dashboard.showModalLoadingMsg();
Dashboard.showLoadingMsg();
MediaController.getTargets().then(function (targets) {
@ -95,11 +95,12 @@
require(['actionsheet'], function () {
Dashboard.hideModalLoadingMsg();
Dashboard.hideLoadingMsg();
ActionSheetElement.show({
title: Globalize.translate('HeaderSelectPlayer'),
items: menuItems,
positionTo: button,
callback: function (id) {
var target = targets.filter(function (t) {
@ -1011,7 +1012,7 @@
function onCastButtonClicked() {
showPlayerSelection();
showPlayerSelection(this);
}
document.addEventListener('headercreated', function () {