mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
make more dlna attributes configurable
This commit is contained in:
parent
b28e9b73bb
commit
e14830e9f1
2 changed files with 1 additions and 18 deletions
|
@ -71,8 +71,6 @@
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html = normalizeLinksHtml(html);
|
|
||||||
|
|
||||||
$(document.body).prepend(html);
|
$(document.body).prepend(html);
|
||||||
$('.viewMenuBar').trigger('create');
|
$('.viewMenuBar').trigger('create');
|
||||||
|
|
||||||
|
@ -80,18 +78,6 @@
|
||||||
bindMenuEvents();
|
bindMenuEvents();
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaceAll(str, find, replace) {
|
|
||||||
return str.replace(new RegExp(find, 'g'), replace);
|
|
||||||
}
|
|
||||||
|
|
||||||
function normalizeLinksHtml(html) {
|
|
||||||
|
|
||||||
if (AppInfo.resetOnLibraryChange) {
|
|
||||||
html = replaceAll(html, '<a ', '<a data-ajax="false"');
|
|
||||||
}
|
|
||||||
return html;
|
|
||||||
}
|
|
||||||
|
|
||||||
function bindMenuEvents() {
|
function bindMenuEvents() {
|
||||||
|
|
||||||
if (AppInfo.isTouchPreferred) {
|
if (AppInfo.isTouchPreferred) {
|
||||||
|
@ -241,8 +227,6 @@
|
||||||
|
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
html = normalizeLinksHtml(html);
|
|
||||||
|
|
||||||
var elem = $('.libraryMenuOptions').html(html);
|
var elem = $('.libraryMenuOptions').html(html);
|
||||||
|
|
||||||
$('.sidebarLink', elem).on('click', function () {
|
$('.sidebarLink', elem).on('click', function () {
|
||||||
|
@ -333,7 +317,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
html += getViewsHtml();
|
html += getViewsHtml();
|
||||||
html = normalizeLinksHtml(html);
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -1363,7 +1363,7 @@ var Dashboard = {
|
||||||
|
|
||||||
if (AppInfo.hasLowImageBandwidth) {
|
if (AppInfo.hasLowImageBandwidth) {
|
||||||
|
|
||||||
quality -= 15;
|
quality -= 20;
|
||||||
|
|
||||||
if (isBackdrop) {
|
if (isBackdrop) {
|
||||||
quality -= 10;
|
quality -= 10;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue