mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add reel
This commit is contained in:
parent
80f38f2eae
commit
50a8de7608
18 changed files with 384 additions and 111 deletions
|
@ -760,6 +760,9 @@
|
|||
var action = elem.getAttribute('data-action');
|
||||
var elemWithAttributes = elem.getAttribute('data-itemid') ? elem : elem.parentNode;
|
||||
|
||||
var index;
|
||||
var itemsContainer;
|
||||
|
||||
var itemId = elemWithAttributes.getAttribute('data-itemid');
|
||||
|
||||
if (action == 'play') {
|
||||
|
@ -767,13 +770,22 @@
|
|||
}
|
||||
else if (action == 'playallfromhere') {
|
||||
|
||||
var index = elemWithAttributes.getAttribute('data-index');
|
||||
var itemsContainer = $(elem).parents('.itemsContainer');
|
||||
index = elemWithAttributes.getAttribute('data-index');
|
||||
itemsContainer = $(elem).parents('.itemsContainer');
|
||||
|
||||
closeContextMenu();
|
||||
|
||||
itemsContainer.trigger('playallfromhere', [index]);
|
||||
}
|
||||
else if (action == 'photoslideshow') {
|
||||
|
||||
itemsContainer = $(elem).parents('.itemsContainer');
|
||||
index = $('.card', itemsContainer).get().indexOf(elem);
|
||||
|
||||
closeContextMenu();
|
||||
|
||||
itemsContainer.trigger('photoslideshow', [index]);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -861,6 +873,10 @@
|
|||
function onUserDataChanged(userData) {
|
||||
|
||||
var cssClass = LibraryBrowser.getUserDataCssClass(userData.Key);
|
||||
|
||||
if (!cssClass) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('.' + cssClass).each(function () {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue