mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Rename variable to camelcase.
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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</button>'
|
||||
);
|
||||
|
||||
var ApplyBtn = "#btn_apply_" + data.id;
|
||||
var applyBtn = "#btn_apply_" + data.id;
|
||||
|
||||
var button =
|
||||
'<button type="button" class="btn btn-danger btn-xs" id="deleteAdlist_' +
|
||||
|
||||
Reference in New Issue
Block a user