1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Resolve suggestions

This commit is contained in:
MrTimscampi 2020-07-24 13:08:49 +02:00
parent fba795fd63
commit ffc22f629e
7 changed files with 8 additions and 17 deletions

View file

@ -10,7 +10,7 @@ import 'css!./../formdialog';
/* eslint-disable indent */
function centerFocus(elem, horiz, on) {
require(['scrollHelper'], function (scrollHelper) {
import('scrollHelper').then(({default: scrollHelper}) => {
const fn = on ? 'on' : 'off';
scrollHelper.centerFocus[fn](elem, horiz);
});
@ -19,7 +19,7 @@ import 'css!./../formdialog';
function show(person) {
return new Promise(function (resolve, reject) {
require(['text!./personEditor.template.html'], function (template) {
import('text!./personEditor.template.html').then(({default: template}) => {
const dialogOptions = {
removeOnClose: true,