mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #912 - Add special views for Dlna
This commit is contained in:
parent
2d48323943
commit
0110056c56
4 changed files with 22 additions and 10 deletions
|
@ -727,14 +727,16 @@
|
|||
|
||||
var elem = this;
|
||||
var action = elem.getAttribute('data-action');
|
||||
var itemId = elem.parentNode.getAttribute('data-itemid');
|
||||
var elemWithAttributes = elem.getAttribute('data-itemid') ? elem : elem.parentNode;
|
||||
|
||||
var itemId = elemWithAttributes.getAttribute('data-itemid');
|
||||
|
||||
if (action == 'play') {
|
||||
MediaController.play(itemId);
|
||||
}
|
||||
else if (action == 'playallfromhere') {
|
||||
|
||||
var index = elem.parentNode.getAttribute('data-index');
|
||||
var index = elemWithAttributes.getAttribute('data-index');
|
||||
var itemsContainer = $(elem).parents('.itemsContainer');
|
||||
|
||||
closeContextMenu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue