mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
use shared collectioneditor
This commit is contained in:
parent
57631a11ff
commit
6f2b1c2ef8
9 changed files with 447 additions and 249 deletions
|
@ -494,9 +494,12 @@
|
|||
switch (id) {
|
||||
|
||||
case 'addtocollection':
|
||||
require(['collectioneditor'], function (collectioneditor) {
|
||||
require(['collectionEditor'], function (collectionEditor) {
|
||||
|
||||
new collectioneditor().show([itemId]);
|
||||
new collectionEditor().show({
|
||||
items: [itemId],
|
||||
serverId: serverId
|
||||
});
|
||||
});
|
||||
break;
|
||||
case 'playlist':
|
||||
|
@ -1232,9 +1235,11 @@
|
|||
switch (id) {
|
||||
|
||||
case 'addtocollection':
|
||||
require(['collectioneditor'], function (collectioneditor) {
|
||||
require(['collectionEditor'], function (collectionEditor) {
|
||||
|
||||
new collectioneditor().show(items);
|
||||
new collectionEditor().show({
|
||||
items: items
|
||||
});
|
||||
});
|
||||
hideSelections();
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue