1
0
Fork 0
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:
Luke Pulverenti 2016-05-21 22:28:47 -04:00
parent 57631a11ff
commit 6f2b1c2ef8
9 changed files with 447 additions and 249 deletions

View file

@ -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
});
});
});