mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
removed dead code
This commit is contained in:
parent
4035ba7066
commit
91b07f9cc7
1 changed files with 0 additions and 35 deletions
|
@ -15,22 +15,6 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCardClick(e) {
|
|
||||||
|
|
||||||
var card = parentWithClass(e.target, 'card');
|
|
||||||
|
|
||||||
if (card) {
|
|
||||||
|
|
||||||
var itemSelectionPanel = card.querySelector('.itemSelectionPanel');
|
|
||||||
if (itemSelectionPanel) {
|
|
||||||
return onItemSelectionPanelClick(e, itemSelectionPanel);
|
|
||||||
}
|
|
||||||
else if (card.classList.contains('groupedCard')) {
|
|
||||||
return onGroupedCardClick(e, card);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onGroupedCardClick(e, card) {
|
function onGroupedCardClick(e, card) {
|
||||||
|
|
||||||
var itemId = card.getAttribute('data-id');
|
var itemId = card.getAttribute('data-id');
|
||||||
|
@ -73,25 +57,6 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function parentWithClass(elem, className) {
|
|
||||||
|
|
||||||
while (!elem.classList || !elem.classList.contains(className)) {
|
|
||||||
elem = elem.parentNode;
|
|
||||||
|
|
||||||
if (!elem) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return elem;
|
|
||||||
}
|
|
||||||
|
|
||||||
libraryBrowser.createCardMenus = function (curr, options) {
|
|
||||||
|
|
||||||
curr.removeEventListener('click', onCardClick);
|
|
||||||
curr.addEventListener('click', onCardClick);
|
|
||||||
};
|
|
||||||
|
|
||||||
function showSyncButtonsPerUser(page) {
|
function showSyncButtonsPerUser(page) {
|
||||||
|
|
||||||
var apiClient = window.ApiClient;
|
var apiClient = window.ApiClient;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue