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 = normalizeLinksHtml(html);
|
||||
|
||||
$(document.body).prepend(html);
|
||||
$('.viewMenuBar').trigger('create');
|
||||
|
||||
|
@ -80,18 +78,6 @@
|
|||
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() {
|
||||
|
||||
if (AppInfo.isTouchPreferred) {
|
||||
|
@ -241,8 +227,6 @@
|
|||
|
||||
}).join('');
|
||||
|
||||
html = normalizeLinksHtml(html);
|
||||
|
||||
var elem = $('.libraryMenuOptions').html(html);
|
||||
|
||||
$('.sidebarLink', elem).on('click', function () {
|
||||
|
@ -333,7 +317,6 @@
|
|||
}
|
||||
|
||||
html += getViewsHtml();
|
||||
html = normalizeLinksHtml(html);
|
||||
html += '</div>';
|
||||
|
||||
html += '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue