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:
parent
d1842ae4e3
commit
c8eb5f2b0c
14 changed files with 504 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue