mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
support ac3 audio in edge browser
This commit is contained in:
parent
3d0d3247fd
commit
ac72577f3b
9 changed files with 67 additions and 49 deletions
|
@ -64,12 +64,7 @@
|
|||
|
||||
if (path) {
|
||||
|
||||
html += '<paper-item role="menuitem" class="lnkPath lnkDirectory" data-path="' + parentPath + '">';
|
||||
html += '<paper-item-body>';
|
||||
html += '...';
|
||||
html += '</paper-item-body>';
|
||||
html += '<iron-icon icon="arrow-forward"></iron-icon>';
|
||||
html += '</paper-item>';
|
||||
html += getItem("lnkPath lnkDirectory", parentPath, "Network", '...');
|
||||
}
|
||||
|
||||
for (var i = 0, length = folders.length; i < length; i++) {
|
||||
|
@ -78,21 +73,11 @@
|
|||
|
||||
var cssClass = folder.Type == "File" ? "lnkPath lnkFile" : "lnkPath lnkDirectory";
|
||||
|
||||
html += '<paper-item role="menuitem" class="' + cssClass + '" data-type="' + folder.Type + '" data-path="' + folder.Path + '">';
|
||||
html += '<paper-item-body>';
|
||||
html += folder.Name;
|
||||
html += '</paper-item-body>';
|
||||
html += '<iron-icon icon="arrow-forward"></iron-icon>';
|
||||
html += '</paper-item>';
|
||||
html += getItem(cssClass, folder.Type, folder.Path, folder.Name);
|
||||
}
|
||||
|
||||
if (!path) {
|
||||
html += '<paper-item role="menuitem" class="lnkPath lnkDirectory" data-path="Network">';
|
||||
html += '<paper-item-body>';
|
||||
html += Globalize.translate('ButtonNetwork');
|
||||
html += '</paper-item-body>';
|
||||
html += '<iron-icon icon="arrow-forward"></iron-icon>';
|
||||
html += '</paper-item>';
|
||||
html += getItem("lnkPath lnkDirectory", "", "Network", Globalize.translate('ButtonNetwork'));
|
||||
}
|
||||
|
||||
$('.results', page).html(html);
|
||||
|
@ -108,6 +93,19 @@
|
|||
});
|
||||
}
|
||||
|
||||
function getItem(cssClass, type, path, name) {
|
||||
|
||||
var html = '';
|
||||
html += '<paper-item role="menuitem" class="' + cssClass + '" data-type="' + type + '" data-path="' + path + '">';
|
||||
html += '<paper-item-body>';
|
||||
html += name;
|
||||
html += '</paper-item-body>';
|
||||
html += '<iron-icon icon="arrow-forward"></iron-icon>';
|
||||
html += '</paper-item>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
function getEditorHtml(options, systemInfo) {
|
||||
|
||||
var html = '';
|
||||
|
|
|
@ -55,10 +55,7 @@
|
|||
|
||||
html += '<paper-icon-item role="menuitem" class="lnkPath">';
|
||||
|
||||
if (!$.browser.msie) {
|
||||
// Not sure why, but this is causing the entire browser to hang
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="folder" item-icon></paper-fab>';
|
||||
}
|
||||
html += '<paper-fab class="listAvatar" style="background:#52B54B;" icon="folder" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body>';
|
||||
html += path;
|
||||
|
|
|
@ -87,9 +87,12 @@
|
|||
|
||||
// without this safari will scroll the background instead of the dialog contents
|
||||
// but not needed here since this is already on top of an existing dialog
|
||||
dlg.setAttribute('modal', 'modal');
|
||||
// but skip it in IE because it's causing the entire browser to hang
|
||||
if (!$.browser.msie) {
|
||||
dlg.setAttribute('modal', 'modal');
|
||||
}
|
||||
|
||||
// seeing max call stack size exceeded in the debugger with this
|
||||
//// seeing max call stack size exceeded in the debugger with this
|
||||
dlg.setAttribute('noAutoFocus', 'noAutoFocus');
|
||||
dlg.entryAnimation = 'scale-up-animation';
|
||||
dlg.exitAnimation = 'fade-out-animation';
|
||||
|
|
|
@ -166,7 +166,7 @@
|
|||
}).fail(function () {
|
||||
Dashboard.hideLoadingMsg();
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('ErrorSavingTvProvider')
|
||||
message: Globalize.translate('ErrorAddingListingsToSchedulesDirect')
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue