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

fixes #762 - Marking unwatched doesn't update display

This commit is contained in:
Luke Pulverenti 2014-07-03 22:22:57 -04:00
parent 5bec78f61f
commit 41825781d2
49 changed files with 443 additions and 505 deletions

View file

@ -499,17 +499,27 @@
if (!$('.playedIndicator', posterItem).length) {
var html = '<div class="unplayedIndicator"><div class="ui-icon-check ui-btn-icon-notext"></div></div>';
$(html).insertAfter($('.posterItemOverlayTarget', posterItem));
$('<div class="playedIndicator"></div>').insertAfter($('.posterItemOverlayTarget', posterItem));
}
} else {
$('.playedIndicator', posterItem).remove();
$('.playedIndicator', posterItem).html('<div class="ui-icon-check ui-btn-icon-notext"></div>');
$('.posterItemProgress', posterItem).remove();
}
else if (userData.UnplayedItemCount) {
// TODO: Handle progress bar
// $('.posterItemProgressContainer').remove();
if (!$('.playedIndicator', posterItem).length) {
$('<div class="playedIndicator"></div>').insertAfter($('.posterItemOverlayTarget', posterItem));
}
$('.playedIndicator', posterItem).html(userData.UnplayedItemCount);
}
else {
$('.playedIndicator', posterItem).remove();
var progressHtml = LibraryBrowser.getItemProgressBarHtml(userData);
$('.posterItemProgress', posterItem).html(progressHtml);
}
}
function onUserDataChanged(userData) {