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

rework server sync

This commit is contained in:
Luke Pulverenti 2015-04-13 01:12:02 -04:00
parent 4b3ce4d2ae
commit 24ea83ad5f
5 changed files with 37 additions and 9 deletions

View file

@ -78,6 +78,15 @@
LiveTvHelpers.renderOriginalAirDate($('.airDate', page), item);
Dashboard.hideLoadingMsg();
Dashboard.getCurrentUser().done(function(user) {
if (SyncManager.isAvailable(item, user)) {
$('.btnSync', page).removeClass('hide');
} else {
$('.btnSync', page).addClass('hide');
}
});
}
function reload(page) {
@ -100,6 +109,13 @@
$('#btnDelete', page).on('click', deleteRecording);
$('#btnPlay', page).on('click', play);
$('.btnSync', page).on('click', function () {
SyncManager.showMenu({
items: [currentItem]
});
});
}).on('pagebeforeshow', "#liveTvRecordingPage", function () {
var page = this;