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

add new sharing function

This commit is contained in:
Luke Pulverenti 2015-06-30 19:59:45 -04:00
parent d1842ae4e3
commit c8eb5f2b0c
14 changed files with 504 additions and 8 deletions

View file

@ -52,6 +52,12 @@
$('.btnSync', page).addClass('hide');
}
if (user.Policy.EnablePublicSharing) {
$('.btnShare', page).removeClass('hide');
} else {
$('.btnShare', page).addClass('hide');
}
if (!item.LocalTrailerCount && item.RemoteTrailers.length && item.PlayAccess == 'Full') {
$('.btnPlayExternalTrailer', page).removeClass('hide').attr('href', item.RemoteTrailers[0].Url);
@ -1623,6 +1629,13 @@
});
});
$('.btnShare', page).on('click', function () {
require(['sharingmanager'], function () {
SharingManager.showMenu(Dashboard.getCurrentUserId(), currentItem.Id);
});
});
$('.btnMoreCommands', page).on('click', function () {
var button = this;