Merge pull request #1307 from pi-hole/XhmikosR-patch-9

Rename variable to camelcase.
This commit is contained in:
Adam Warner
2020-05-17 11:11:02 +01:00
committed by GitHub
3 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -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_' +
+5 -5
View File
@@ -161,8 +161,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 () {
@@ -172,9 +172,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()
@@ -186,7 +186,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="deleteClient_' +
+5 -5
View File
@@ -192,8 +192,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 () {
@@ -203,9 +203,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()
@@ -218,7 +218,7 @@ function initTable() {
);
}
var ApplyBtn = "#btn_apply_" + data.id;
var applyBtn = "#btn_apply_" + data.id;
// Highlight row (if url parameter "domainid=" is used)
if ("domainid" in GETDict && data.id === parseInt(GETDict.domainid)) {