fixes #1615 - Allow to "mark as watched" when using multi-select.
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user