1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Adjust transcoding throttling

This commit is contained in:
Luke Pulverenti 2014-08-30 10:26:29 -04:00
parent c9e79fdcdf
commit c444daa6e8
8 changed files with 121 additions and 60 deletions

View file

@ -723,6 +723,28 @@
PlaylistManager.showPanel(selection);
}
function onItemWithActionClick() {
var elem = this;
var action = elem.getAttribute('data-action');
var itemId = elem.parentNode.getAttribute('data-itemid');
if (action == 'play') {
MediaController.play(itemId);
}
else if (action == 'playallfromhere') {
var index = elem.parentNode.getAttribute('data-index');
var itemsContainer = $(elem).parents('.itemsContainer');
closeContextMenu();
itemsContainer.trigger('playallfromhere', [index]);
}
return false;
}
$(document).on('pageinit', ".libraryPage", function () {
var page = this;
@ -762,6 +784,7 @@
toggleSelections(page);
});
$('.itemWithAction', this).on('click', onItemWithActionClick);
});
}).on('pagebeforeshow', ".libraryPage", function () {