mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Fix deprecated ready function (#3461)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -474,7 +474,7 @@ $("#button-disable-totp").confirm({
|
||||
dialogClass: "modal-dialog",
|
||||
});
|
||||
|
||||
$(document).ready(() => {
|
||||
$(() => {
|
||||
processWebServerConfig();
|
||||
// Check if TOTP is enabled
|
||||
$.ajax({
|
||||
|
||||
@@ -227,6 +227,6 @@ function processDHCPConfig() {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
$(() => {
|
||||
processDHCPConfig();
|
||||
});
|
||||
|
||||
@@ -214,7 +214,7 @@ function delCNAME(elem) {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
$(() => {
|
||||
$("#btnAdd-host").on("click", () => {
|
||||
utils.disableAll();
|
||||
const elem = $("#Hip").val() + " " + $("#Hdomain").val();
|
||||
|
||||
@@ -135,6 +135,6 @@ function processDNSConfig() {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
$(() => {
|
||||
processDNSConfig();
|
||||
});
|
||||
|
||||
@@ -21,6 +21,6 @@ function getConfig() {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
$(() => {
|
||||
getConfig();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user