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

Merge pull request #6333 from viown/remove-jquery-part-1

Remove jQuery
This commit is contained in:
viown 2025-01-14 01:12:37 +03:00 committed by GitHub
parent f1c49163c2
commit 3600426058
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 177 additions and 152 deletions

View file

@ -3,7 +3,7 @@ import loading from '../../components/loading/loading';
import Dashboard from '../../utils/dashboard';
function loadPage(page, config) {
$('#txtRemoteClientBitrateLimit', page).val(config.RemoteClientBitrateLimit / 1e6 || '');
page.querySelector('#txtRemoteClientBitrateLimit').value = config.RemoteClientBitrateLimit / 1e6 || '';
loading.hide();
}
@ -11,7 +11,7 @@ function onSubmit() {
loading.show();
const form = this;
ApiClient.getServerConfiguration().then(function (config) {
config.RemoteClientBitrateLimit = parseInt(1e6 * parseFloat($('#txtRemoteClientBitrateLimit', form).val() || '0'), 10);
config.RemoteClientBitrateLimit = parseInt(1e6 * parseFloat(form.querySelector('#txtRemoteClientBitrateLimit').value || '0'), 10);
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
});