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

Migrate networking.js, playback.js, serveractivity.js to ES6 modules

This commit is contained in:
Cameron 2020-07-08 19:58:28 +01:00
parent 1f8ce6e6f4
commit 1ac3ecbfa7
4 changed files with 28 additions and 11 deletions

View file

@ -1,5 +1,9 @@
define(['jQuery', 'loading', 'libraryMenu', 'globalize'], function ($, loading, libraryMenu, globalize) {
'use strict';
import $ from 'jQuery';
import loading from 'loading';
import libraryMenu from 'libraryMenu';
import globalize from 'globalize';
/* eslint-disable indent */
function loadPage(page, config) {
$('#txtMinResumePct', page).val(config.MinResumePct);
@ -45,4 +49,5 @@ define(['jQuery', 'loading', 'libraryMenu', 'globalize'], function ($, loading,
loadPage(page, config);
});
});
});
/* eslint-enable indent */