mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Use $(fn)
This is the recommended way in jQuery 3.x. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -127,7 +127,7 @@ function auditUrl(url) {
|
||||
add(url, "audit");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
// Pull in data via AJAX
|
||||
updateTopLists();
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ function showAlert(type, message) {
|
||||
alertElement.delay(8000).fadeOut(2000);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$("#btnAdd").on("click", addCustomDNS);
|
||||
|
||||
table = $("#customDNSTable").DataTable({
|
||||
|
||||
@@ -146,7 +146,7 @@ function updateQueriesOverTime() {
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
var ctx = document.getElementById("queryOverTimeChart").getContext("2d");
|
||||
var blockedColor = "#999";
|
||||
var permittedColor = "#00a65a";
|
||||
|
||||
@@ -233,7 +233,7 @@ function refreshTableData() {
|
||||
tableApi.ajax.url(APIstring).load(reloadCallback);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
var APIstring;
|
||||
|
||||
if (instantquery) {
|
||||
|
||||
@@ -125,7 +125,7 @@ function testCookies() {
|
||||
return ret;
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
var enaT = $("#enableTimer");
|
||||
var target = new Date(parseInt(enaT.html()));
|
||||
var seconds = Math.round((target.getTime() - new Date().getTime()) / 1000);
|
||||
|
||||
@@ -23,7 +23,7 @@ function getGroups() {
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$("#btnAdd").on("click", addAdlist);
|
||||
|
||||
utils.setBsSelectDefaults();
|
||||
|
||||
@@ -57,7 +57,7 @@ function getGroups() {
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$("#btnAdd").on("click", addClient);
|
||||
|
||||
reloadClientSuggestions();
|
||||
|
||||
@@ -25,7 +25,7 @@ function getGroups() {
|
||||
);
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
window.location.search
|
||||
.substr(1)
|
||||
.split("&")
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
var table;
|
||||
var token = $("#token").text();
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$("#btnAdd").on("click", addGroup);
|
||||
|
||||
table = $("#groupsTable").DataTable({
|
||||
|
||||
@@ -775,7 +775,7 @@ function updateSummaryData(runOnce) {
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
// Pull in data via AJAX
|
||||
updateSummaryData();
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ function renderMessage(data, type, row) {
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$("#messagesTable").DataTable({
|
||||
ajax: {
|
||||
url: "api_db.php?messages",
|
||||
|
||||
@@ -63,7 +63,7 @@ function parseColor(input) {
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
tableApi = $("#network-entries").DataTable({
|
||||
rowCallback: function (row, data) {
|
||||
var color,
|
||||
|
||||
@@ -107,7 +107,7 @@ function autofilter() {
|
||||
return $("#autofilter").prop("checked");
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
// Do we want to filter queries?
|
||||
var GETDict = {};
|
||||
window.location.search
|
||||
|
||||
@@ -121,6 +121,6 @@ $(window).on("resize", function () {
|
||||
.addClass("input-group-btn");
|
||||
}
|
||||
});
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$(window).trigger("resize");
|
||||
});
|
||||
|
||||
@@ -167,7 +167,7 @@ function loadCacheInfo() {
|
||||
}
|
||||
|
||||
var leasetable, staticleasetable;
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
if (document.getElementById("DHCPLeasesTable")) {
|
||||
leasetable = $("#DHCPLeasesTable").DataTable({
|
||||
dom: "<'row'<'col-sm-12'tr>><'row'<'col-sm-6'i><'col-sm-6'f>>",
|
||||
@@ -225,7 +225,7 @@ $(function () {
|
||||
});
|
||||
|
||||
// DHCP leases tooltips
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip({ html: true, container: "body" });
|
||||
});
|
||||
|
||||
@@ -241,7 +241,7 @@ $(".nav-tabs a").on("shown.bs.tab", function (e) {
|
||||
});
|
||||
|
||||
// Auto dismissal for info notifications
|
||||
$(document).ready(function () {
|
||||
$(function () {
|
||||
var alInfo = $("#alInfo");
|
||||
if (alInfo.length > 0) {
|
||||
alInfo.delay(3000).fadeOut(2000, function () {
|
||||
|
||||
Reference in New Issue
Block a user