diff --git a/scripts/pi-hole/js/groups-adlists.js b/scripts/pi-hole/js/groups-adlists.js index fc223019..be775d66 100644 --- a/scripts/pi-hole/js/groups-adlists.js +++ b/scripts/pi-hole/js/groups-adlists.js @@ -127,8 +127,8 @@ function initTable() { }) .on("changed.bs.select", function () { // enable Apply button - if ($(ApplyBtn).prop("disabled")) { - $(ApplyBtn) + if ($(applyBtn).prop("disabled")) { + $(applyBtn) .addClass("btn-success") .prop("disabled", false) .on("click", function () { @@ -138,9 +138,9 @@ function initTable() { }) .on("hide.bs.select", function () { // Restore values if drop-down menu is closed without clicking the Apply button - if (!$(ApplyBtn).prop("disabled")) { + if (!$(applyBtn).prop("disabled")) { $(this).val(data.groups).selectpicker("refresh"); - $(ApplyBtn).removeClass("btn-success").prop("disabled", true).off("click"); + $(applyBtn).removeClass("btn-success").prop("disabled", true).off("click"); } }) .selectpicker() @@ -152,7 +152,7 @@ function initTable() { ' class="btn btn-block btn-sm" disabled>Apply' ); - var ApplyBtn = "#btn_apply_" + data.id; + var applyBtn = "#btn_apply_" + data.id; var button = '' ); - var ApplyBtn = "#btn_apply_" + data.id; + var applyBtn = "#btn_apply_" + data.id; var button = '