mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reconcile apphost
This commit is contained in:
parent
6f1cdf9329
commit
1fcc7ed63e
27 changed files with 8058 additions and 194 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery'], function ($) {
|
||||
define(['apphost', 'jQuery'], function (appHost, $) {
|
||||
|
||||
var currentDialogOptions;
|
||||
|
||||
|
@ -82,12 +82,15 @@
|
|||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['paper-checkbox', 'paper-input', 'emby-collapsible'], function () {
|
||||
renderFormInternal(options, resolve);
|
||||
|
||||
appHost.appInfo().then(function (appInfo) {
|
||||
renderFormInternal(options, appInfo, resolve);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function renderFormInternal(options, resolve) {
|
||||
function renderFormInternal(options, appInfo, resolve) {
|
||||
|
||||
var elem = options.elem;
|
||||
var dialogOptions = options.dialogOptions;
|
||||
|
@ -113,7 +116,7 @@
|
|||
|
||||
html += targets.map(function (t) {
|
||||
|
||||
var isSelected = t.Id == AppInfo.deviceId;
|
||||
var isSelected = t.Id == appInfo.deviceId;
|
||||
var selectedHtml = isSelected ? ' selected="selected"' : '';
|
||||
return '<option' + selectedHtml + ' value="' + t.Id + '">' + t.Name + '</option>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue