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
|
@ -189,9 +189,13 @@
|
|||
// The button is created dynamically
|
||||
$('.btnNewCollection', tabContent).on('click', function () {
|
||||
|
||||
require(['collectioneditor'], function (collectioneditor) {
|
||||
require(['collectionEditor'], function (collectionEditor) {
|
||||
|
||||
new collectioneditor().show();
|
||||
var serverId = ApiClient.serverInfo().Id;
|
||||
new collectionEditor().show({
|
||||
items: [],
|
||||
serverId: serverId
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue