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

update slideshow

This commit is contained in:
Luke Pulverenti 2016-04-18 01:58:08 -04:00
parent 1c296d8d87
commit 658f5052da
32 changed files with 834 additions and 174 deletions

View file

@ -1,4 +1,4 @@
define(['appSettings', 'appStorage', 'libraryBrowser', 'jQuery'], function (appSettings, appStorage, LibraryBrowser, $) {
define(['appSettings', 'appStorage', 'libraryBrowser', 'apphost', 'jQuery'], function (appSettings, appStorage, LibraryBrowser, appHost, $) {
var showOverlayTimeout;
@ -270,7 +270,7 @@
});
}
if (user.Policy.EnableContentDownloading && AppInfo.supportsDownloading) {
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
if (mediaType) {
items.push({
name: Globalize.translate('ButtonDownload'),
@ -491,7 +491,8 @@
api_key: ApiClient.accessToken()
});
fileDownloader([{
fileDownloader.download([
{
url: downloadHref,
itemId: itemId
}]);
@ -1143,7 +1144,7 @@
});
}
if (user.Policy.EnableContentDownloading && AppInfo.supportsDownloading) {
if (user.Policy.EnableContentDownloading && appHost.supports('filedownload')) {
//items.push({
// name: Globalize.translate('ButtonDownload'),
// id: 'download',
@ -1214,7 +1215,7 @@
combineVersions($.mobile.activePage, items);
break;
case 'markplayed':
items.forEach(function(itemId) {
items.forEach(function (itemId) {
ApiClient.markPlayed(Dashboard.getCurrentUserId(), itemId);
});
hideSelections();