Fix deprecated ready function (#3461)

This commit is contained in:
Adam Warner
2025-05-15 18:05:44 +01:00
committed by GitHub
6 changed files with 6 additions and 7 deletions

View File

@@ -6,7 +6,6 @@
* Please see LICENSE file for your rights under this license. */
/* global utils:false, apiFailure: false, applyCheckboxRadioStyle: false */
/* exported createDynamicConfigTabs */
"use strict";
@@ -402,7 +401,7 @@ function applyOnlyChanged() {
}
}
$(document).ready(() => {
$(() => {
createDynamicConfigTabs();
initOnlyChanged();
});

View File

@@ -474,7 +474,7 @@ $("#button-disable-totp").confirm({
dialogClass: "modal-dialog",
});
$(document).ready(() => {
$(() => {
processWebServerConfig();
// Check if TOTP is enabled
$.ajax({

View File

@@ -227,6 +227,6 @@ function processDHCPConfig() {
});
}
$(document).ready(() => {
$(() => {
processDHCPConfig();
});

View File

@@ -214,7 +214,7 @@ function delCNAME(elem) {
});
}
$(document).ready(() => {
$(() => {
$("#btnAdd-host").on("click", () => {
utils.disableAll();
const elem = $("#Hip").val() + " " + $("#Hdomain").val();

View File

@@ -135,6 +135,6 @@ function processDNSConfig() {
});
}
$(document).ready(() => {
$(() => {
processDNSConfig();
});

View File

@@ -21,6 +21,6 @@ function getConfig() {
});
}
$(document).ready(() => {
$(() => {
getConfig();
});