Migration collectionEditor and playlisteditor to ES6 modules
This commit is contained in:
@@ -386,7 +386,7 @@ define(['globalize', 'listView', 'layoutManager', 'userSettings', 'focusManager'
|
||||
var instance = this;
|
||||
|
||||
require(['playlistEditor'], function (playlistEditor) {
|
||||
new playlistEditor().show({
|
||||
new playlistEditor.default().show({
|
||||
items: [],
|
||||
serverId: instance.params.serverId
|
||||
});
|
||||
|
||||
@@ -242,7 +242,7 @@ define(['loading', 'events', 'libraryBrowser', 'imageLoader', 'listView', 'cardB
|
||||
tabContent.querySelector('.btnNewCollection').addEventListener('click', function () {
|
||||
require(['collectionEditor'], function (collectionEditor) {
|
||||
var serverId = ApiClient.serverInfo().Id;
|
||||
new collectionEditor().show({
|
||||
new collectionEditor.default().show({
|
||||
items: [],
|
||||
serverId: serverId
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user