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:
RD WebDesign
2025-11-18 22:38:48 -03:00
parent c0f39284f0
commit 2216444725
16 changed files with 50 additions and 50 deletions

View File

@@ -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");
});
});