1
0
Fork 0
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:
Luke Pulverenti 2014-09-01 16:10:54 -04:00
parent 2d48323943
commit 0110056c56
4 changed files with 22 additions and 10 deletions

View file

@ -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();