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

mark games played when played through nesbox

This commit is contained in:
Luke Pulverenti 2013-10-28 10:56:57 -04:00
parent ef106f264a
commit 30dd80deae
6 changed files with 53 additions and 58 deletions

View file

@ -1519,7 +1519,11 @@
var markAsPlayed = $link.hasClass('imgPlayedOff');
ApiClient.updatePlayedStatus(Dashboard.getCurrentUserId(), id, markAsPlayed);
if (markAsPlayed) {
ApiClient.markPlayed(Dashboard.getCurrentUserId(), id);
} else {
ApiClient.markUnplayed(Dashboard.getCurrentUserId(), id);
}
if (markAsPlayed) {
link.src = "css/images/userdata/playedon.png";