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

fixes #1615 - Allow to "mark as watched" when using multi-select.

This commit is contained in:
Luke Pulverenti 2016-04-16 12:51:52 -04:00
parent 73b495f48c
commit cc2f05c679
2 changed files with 25 additions and 1 deletions

View file

@ -1157,6 +1157,16 @@
ironIcon: 'call-merge' ironIcon: 'call-merge'
}); });
items.push({
name: Globalize.translate('MarkPlayed'),
id: 'markplayed'
});
items.push({
name: Globalize.translate('MarkUnplayed'),
id: 'markunplayed'
});
items.push({ items.push({
name: Globalize.translate('ButtonRefresh'), name: Globalize.translate('ButtonRefresh'),
id: 'refresh', id: 'refresh',
@ -1203,6 +1213,18 @@
case 'groupvideos': case 'groupvideos':
combineVersions($.mobile.activePage, items); combineVersions($.mobile.activePage, items);
break; break;
case 'markplayed':
items.forEach(function(itemId) {
ApiClient.markPlayed(Dashboard.getCurrentUserId(), itemId);
});
hideSelections();
break;
case 'markunplayed':
items.forEach(function (itemId) {
ApiClient.markUnplayed(Dashboard.getCurrentUserId(), itemId);
});
hideSelections();
break;
case 'refresh': case 'refresh':
items.map(function (itemId) { items.map(function (itemId) {

View file

@ -2334,5 +2334,7 @@
"OptionRequirePerfectSubtitleMatch": "Only download subtitles that are a perfect match for my video files", "OptionRequirePerfectSubtitleMatch": "Only download subtitles that are a perfect match for my video files",
"ErrorAddingGuestAccount1": "There was an error adding the Emby Connect account. Has your guest created an Emby account? They can sign up at {0}.", "ErrorAddingGuestAccount1": "There was an error adding the Emby Connect account. Has your guest created an Emby account? They can sign up at {0}.",
"ErrorAddingGuestAccount2": "Please ensure your guest has completed activation by following the instructions in the email sent after creating the account. If they did not receive this email then please send an email to {0}, and include your email address as well as theirs.", "ErrorAddingGuestAccount2": "Please ensure your guest has completed activation by following the instructions in the email sent after creating the account. If they did not receive this email then please send an email to {0}, and include your email address as well as theirs.",
"GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address." "GuestUserNotFound": "User not found. Please ensure the name is correct and try again, or try entering their email address.",
"MarkPlayed": "Mark played",
"MarkUnplayed": "Mark unplayed"
} }