Skip to content

Commit

Permalink
fix: login message not appearing on boostrap v5
Browse files Browse the repository at this point in the history
Change-Id: Ie1112c53396681755a9d3a9f42c39b346809217b
  • Loading branch information
pdessauw committed Sep 19, 2023
1 parent 5870ee2 commit 8de0583
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core_main_app/static/core_main_app/user/js/login/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ var hide_modal = function() {
}

$(document).ready(function() {
const $loginModal = $("#login-modal-id");
// set up the modal
$("#login-modal-id").modal({
show: true,
$loginModal.modal({
keyboard: false,
backdrop: 'static',
});
// hide the '+' of the modal
// hide the 'x' of the modal
$(".close").hide();
$(".btn-close").hide();
// binding event to cancel/yes buttons
$("#btn-login-cancel").on("click", redirect_to_home);
$("#btn-login-yes").on("click", hide_modal);
// Display the modal
$loginModal.modal("show");
});

0 comments on commit 8de0583

Please sign in to comment.