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

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 () {