diff --git a/scripts/pi-hole/js/db_graph.js b/scripts/pi-hole/js/db_graph.js index 62a15ebc..8fdeb122 100644 --- a/scripts/pi-hole/js/db_graph.js +++ b/scripts/pi-hole/js/db_graph.js @@ -393,7 +393,7 @@ $("#querytime").on("apply.daterangepicker", function (ev, picker) { updateQueriesOverTime(); }); -$("#queryOverTimeChart").click(function (evt) { +$("#queryOverTimeChart").on("click", function (evt) { var activePoints = timeLineChart.getElementsAtEventForMode( evt, "nearest", diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index 9afbf402..46f41858 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -464,12 +464,12 @@ $("#querytime").on("apply.daterangepicker", function (ev, picker) { refreshTableData(); }); -$("input[id^=type]").change(function () { +$("input[id^=type]").on("change", function () { if (datepickerManuallySelected) { reloadBox.show(); } }); -$(".bt-reload").click(function () { +$(".bt-reload").on("click", function () { refreshTableData(); }); diff --git a/scripts/pi-hole/js/footer.js b/scripts/pi-hole/js/footer.js index d562ceb7..73ab2107 100644 --- a/scripts/pi-hole/js/footer.js +++ b/scripts/pi-hole/js/footer.js @@ -150,7 +150,7 @@ function initCheckboxRadioStyle() { var iCheckStyle = $("#iCheckStyle"); if (iCheckStyle !== null) { iCheckStyle.val(chkboxStyle); - iCheckStyle.change(function () { + iCheckStyle.on("change", function () { var themename = $(this).val(); localStorage.setItem("theme_icheck", themename); applyCheckboxRadioStyle(themename); @@ -197,7 +197,7 @@ function initCPUtemp() { var tempunitSelector = $("#tempunit-selector"); if (tempunitSelector !== null) { tempunitSelector.val(tempunit); - tempunitSelector.change(function () { + tempunitSelector.on("change", function () { tempunit = $(this).val(); setCPUtemp(tempunit); }); @@ -256,7 +256,7 @@ $("#pihole-disable-custom").on("click", function (e) { }); // Handle Ctrl + Enter button on Login page -$(document).keypress(function (e) { +$(document).on("keypress", function (e) { if ((e.keyCode === 10 || e.keyCode === 13) && e.ctrlKey && $("#loginpw").is(":focus")) { $("#loginform").attr("action", "settings.php"); $("#loginform").submit(); diff --git a/scripts/pi-hole/js/groups-domains.js b/scripts/pi-hole/js/groups-domains.js index 1dd2c026..f1228dd5 100644 --- a/scripts/pi-hole/js/groups-domains.js +++ b/scripts/pi-hole/js/groups-domains.js @@ -69,7 +69,7 @@ function showSuggestDomains(value) { // Purposefully omit 'btn' class to save space on padding return $('