mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 18:58:28 +00:00
Replace ".hidden" class with ".d-none"
The old bootstrap3 ".hidden" class was renamed to ".d-none" in Bootstrap4 Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -332,7 +332,7 @@ $("#modal-apppw").on("shown.bs.modal", () => {
|
||||
.done(data => {
|
||||
apppwhash = data.app.hash;
|
||||
$("#password_code").text(data.app.password);
|
||||
$("#password_display").removeClass("hidden");
|
||||
$("#password_display").removeClass("d-none");
|
||||
$("#password-spinner").hide();
|
||||
})
|
||||
.fail(data => {
|
||||
@@ -432,8 +432,8 @@ function setTOTPSecret(secret) {
|
||||
contentType: "application/json; charset=utf-8",
|
||||
})
|
||||
.done(() => {
|
||||
$("#button-enable-totp").addClass("hidden");
|
||||
$("#button-disable-totp").removeClass("hidden");
|
||||
$("#button-enable-totp").addClass("d-none");
|
||||
$("#button-disable-totp").removeClass("d-none");
|
||||
$("#totp_code").val("");
|
||||
$("#modal-totp").modal("hide");
|
||||
const verb = secret.length > 0 ? "enabled" : "disabled";
|
||||
@@ -478,7 +478,7 @@ $(() => {
|
||||
$.ajax({
|
||||
url: document.body.dataset.apiurl + "/auth",
|
||||
}).done(data => {
|
||||
if (data.session.totp === false) $("#button-enable-totp").removeClass("hidden");
|
||||
else $("#button-disable-totp").removeClass("hidden");
|
||||
if (data.session.totp === false) $("#button-enable-totp").removeClass("d-none");
|
||||
else $("#button-disable-totp").removeClass("d-none");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user