Use $(fn)

This is the recommended way in jQuery 3.x.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-23 17:04:11 +03:00
parent 758bd21870
commit cecb5aa88c
15 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ function auditUrl(url) {
add(url, "audit");
}
$(document).ready(function () {
$(function () {
// Pull in data via AJAX
updateTopLists();
+1 -1
View File
@@ -37,7 +37,7 @@ function showAlert(type, message) {
alertElement.delay(8000).fadeOut(2000);
}
$(document).ready(function () {
$(function () {
$("#btnAdd").on("click", addCustomDNS);
table = $("#customDNSTable").DataTable({
+1 -1
View File
@@ -146,7 +146,7 @@ function updateQueriesOverTime() {
);
}
$(document).ready(function () {
$(function () {
var ctx = document.getElementById("queryOverTimeChart").getContext("2d");
var blockedColor = "#999";
var permittedColor = "#00a65a";
+1 -1
View File
@@ -233,7 +233,7 @@ function refreshTableData() {
tableApi.ajax.url(APIstring).load(reloadCallback);
}
$(document).ready(function () {
$(function () {
var APIstring;
if (instantquery) {
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -23,7 +23,7 @@ function getGroups() {
);
}
$(document).ready(function () {
$(function () {
$("#btnAdd").on("click", addAdlist);
utils.setBsSelectDefaults();
+1 -1
View File
@@ -57,7 +57,7 @@ function getGroups() {
);
}
$(document).ready(function () {
$(function () {
$("#btnAdd").on("click", addClient);
reloadClientSuggestions();
+1 -1
View File
@@ -25,7 +25,7 @@ function getGroups() {
);
}
$(document).ready(function () {
$(function () {
window.location.search
.substr(1)
.split("&")
+1 -1
View File
@@ -10,7 +10,7 @@
var table;
var token = $("#token").text();
$(document).ready(function () {
$(function () {
$("#btnAdd").on("click", addGroup);
table = $("#groupsTable").DataTable({
+1 -1
View File
@@ -775,7 +775,7 @@ function updateSummaryData(runOnce) {
});
}
$(document).ready(function () {
$(function () {
// Pull in data via AJAX
updateSummaryData();
+1 -1
View File
@@ -62,7 +62,7 @@ function renderMessage(data, type, row) {
}
}
$(document).ready(function () {
$(function () {
$("#messagesTable").DataTable({
ajax: {
url: "api_db.php?messages",
+1 -1
View File
@@ -63,7 +63,7 @@ function parseColor(input) {
}
}
$(document).ready(function () {
$(function () {
tableApi = $("#network-entries").DataTable({
rowCallback: function (row, data) {
var color,
+1 -1
View File
@@ -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
+1 -1
View File
@@ -121,6 +121,6 @@ $(window).on("resize", function () {
.addClass("input-group-btn");
}
});
$(document).ready(function () {
$(function () {
$(window).trigger("resize");
});
+3 -3
View File
@@ -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 () {