mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Address more feedback
This commit is contained in:
parent
5799a877a9
commit
b7d2561dae
12 changed files with 20 additions and 26 deletions
|
@ -59,7 +59,7 @@ import 'formDialogStyle';
|
|||
|
||||
export function show(options) {
|
||||
return new Promise((resolve, reject) => {
|
||||
import('text!./components/accessSchedule/accessSchedule.template.html').then(({default: template}) => {
|
||||
import('text!./accessSchedule.template.html').then(({default: template}) => {
|
||||
const dlg = dialogHelper.createDialog({
|
||||
removeOnClose: true,
|
||||
size: 'small'
|
||||
|
|
|
@ -231,9 +231,8 @@ import 'flexStyles';
|
|||
}
|
||||
|
||||
function addElementToList(source, sortCallback) {
|
||||
require(['prompt'], function (prompt) {
|
||||
|
||||
prompt.default({
|
||||
import('prompt').then(({default: prompt}) => {
|
||||
prompt({
|
||||
label: 'Value:'
|
||||
}).then(function (text) {
|
||||
const list = dom.parentWithClass(source, 'editableListviewContainer').querySelector('.paperList');
|
||||
|
@ -1076,7 +1075,7 @@ import 'flexStyles';
|
|||
}
|
||||
|
||||
function centerFocus(elem, horiz, on) {
|
||||
require(['scrollHelper'], function (scrollHelper) {
|
||||
import('scrollHelper').then(({default: scrollHelper}) => {
|
||||
const fn = on ? 'on' : 'off';
|
||||
scrollHelper.centerFocus[fn](elem, horiz);
|
||||
});
|
||||
|
@ -1085,8 +1084,7 @@ import 'flexStyles';
|
|||
function show(itemId, serverId, resolve, reject) {
|
||||
loading.show();
|
||||
|
||||
require(['text!./metadataEditor.template.html'], function (template) {
|
||||
|
||||
import('text!./metadataEditor.template.html').then(({default: template}) => {
|
||||
const dialogOptions = {
|
||||
removeOnClose: true,
|
||||
scrollY: false
|
||||
|
@ -1142,8 +1140,7 @@ import 'flexStyles';
|
|||
|
||||
loading.show();
|
||||
|
||||
require(['text!./metadataEditor.template.html'], function (template) {
|
||||
|
||||
import('text!./metadataEditor.template.html').then(({default: template}) => {
|
||||
elem.innerHTML = globalize.translateHtml(template, 'core');
|
||||
|
||||
elem.querySelector('.formDialogFooter').classList.remove('formDialogFooter');
|
||||
|
|
|
@ -262,7 +262,7 @@ import 'css!./multiSelect';
|
|||
switch (id) {
|
||||
case 'addtocollection':
|
||||
import('collectionEditor').then(({default: collectionEditor}) => {
|
||||
new collectionEditor.showEditor({
|
||||
new collectionEditor({
|
||||
items: items,
|
||||
serverId: serverId
|
||||
});
|
||||
|
@ -272,7 +272,7 @@ import 'css!./multiSelect';
|
|||
break;
|
||||
case 'playlist':
|
||||
import('playlistEditor').then(({default: playlistEditor}) => {
|
||||
new playlistEditor.showEditor({
|
||||
new playlistEditor({
|
||||
items: items,
|
||||
serverId: serverId
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue