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'
});
items.push({
name: Globalize.translate('MarkPlayed'),
id: 'markplayed'
});
items.push({
name: Globalize.translate('MarkUnplayed'),
id: 'markunplayed'
});
items.push({
name: Globalize.translate('ButtonRefresh'),
id: 'refresh',
@ -1203,6 +1213,18 @@
case 'groupvideos':
combineVersions($.mobile.activePage, items);
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':
items.map(function (itemId) {