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

update bulk commands

This commit is contained in:
Luke Pulverenti 2015-09-27 21:50:11 -04:00
parent 38fe3b9e39
commit 8a767164da
3 changed files with 7 additions and 35 deletions

View file

@ -67,7 +67,7 @@
}
.repeatActive {
color: #3367d6;
color: #52B54B;
}
@media (min-width: 500px) {

View file

@ -1208,9 +1208,11 @@
case 'addtocollection':
BoxSetEditor.showPanel(selectedItems);
hideSelections();
break;
case 'playlist':
PlaylistManager.showPanel(selectedItems);
hideSelections();
break;
case 'refresh':
selectedItems.map(function (itemId) {
@ -1226,6 +1228,7 @@
});
});
hideSelections();
break;
case 'sync':
SyncManager.showMenu({
@ -1235,12 +1238,11 @@
};
})
});
hideSelections();
break;
default:
break;
}
hideSelections();
}
});
@ -1253,33 +1255,6 @@
return selectedItems;
}
function onSyncJobListSubmit() {
hideSelections();
}
function sync(page) {
var selection = getSelectedItems();
if (selection.length < 1) {
Dashboard.alert({
message: Globalize.translate('MessagePleaseSelectOneItem'),
title: Globalize.translate('HeaderError')
});
return;
}
SyncManager.showMenu({
items: selection
});
Events.off(SyncManager, 'jobsubmit', onSyncJobListSubmit);
Events.on(SyncManager, 'jobsubmit', onSyncJobListSubmit);
}
function combineVersions(page) {
var selection = getSelectedItems();
@ -1319,8 +1294,6 @@
Dashboard.hideLoadingMsg();
hideSelections();
$('.itemsContainer', page).trigger('needsrefresh');
});
}
@ -1436,7 +1409,7 @@
});
pageClassOn('pagebeforeshow', "libraryPage", function () {
pageClassOn('pagebeforehide', "libraryPage", function () {
var page = this;

View file

@ -1564,7 +1564,7 @@ var Dashboard = {
// The native app can handle a little bit more than safari
if (AppInfo.isNativeApp) {
quality -= 5;
quality -= 10;
} else {
@ -1774,7 +1774,6 @@ var AppInfo = {};
AppInfo.enableMovieTrailersTab = true;
}
AppInfo.enableAppLayouts = true;
if (isCordova) {
AppInfo.enableAppLayouts = true;
AppInfo.hasKnownExternalPlayerSupport = true;