Skip to content

Commit

Permalink
Fixes #23790: Since the bootstrap 5 update, modals no longer open
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelGauthier committed Nov 30, 2023
1 parent df4127f commit f5e9d8a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class AsyncDeployment extends CometActor with CometListener with Loggable {
}

private[this] def errorPopup = {
<div class="modal fade" tabindex="-1" id="errorDetailsDialog">
<div class="modal fade" tabindex="-1" id="errorDetailsDialog" data-bs-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down Expand Up @@ -267,7 +267,7 @@ class AsyncDeployment extends CometActor with CometListener with Loggable {
}

private[this] def generatePoliciesPopup = {
<div class="modal fade" tabindex="-1" id="generatePoliciesDialog" aria-hidden="true">
<div class="modal fade" tabindex="-1" id="generatePoliciesDialog" aria-hidden="true" data-bs-backdrop="false" data-bs-dismiss="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class NodeGroupCategoryForm(

if (parentCategory.isDefined && _nodeGroupCategory.children.isEmpty && _nodeGroupCategory.items.isEmpty) {
val popupContent = {
<div class="modal-dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title text-start">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class CreateOrUpdateGlobalParameterPopup(
}
private[this] def formXml(): NodeSeq = {
SHtml.ajaxForm(
<div class="modal-dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="title">Here come title</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,9 @@ class TechniqueLibraryManagement extends DispatchSnippet with Loggable {
setCreationPopup

// update UI
SetHtml("createActiveTechniquesCategoryContainer", createPopup) & JsRaw("""initBsModal("createActiveTechniqueCategoryPopup")""")
SetHtml("createActiveTechniquesCategoryContainer", createPopup) & JsRaw(
"""initBsModal("createActiveTechniqueCategoryPopup")"""
)

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ $navbar-hover-color : #F4F4F4;
background-color: #fff;
box-shadow: 4px 4px 10px #dce3efb0;
}

.modal-open {
.main-header > .navbar,
.main-header > .logo{
z-index: -1;
}
}

.main-header .form-control::-moz-placeholder {
color: #36474eaa;
opacity: 1
Expand Down Expand Up @@ -771,7 +779,7 @@ header.main-header .logo-lg img{
}
aside.main-sidebar.fixed {
position:fixed;
z-index: 1030;
z-index: 1020;
height: calc(100% - 50px);
min-height: calc(100% - 50px);
margin-top: 50px;
Expand Down Expand Up @@ -1182,4 +1190,11 @@ header.main-header .logo-lg img{
}
.content-wrapper label > .icon-info:hover{
color: #286090;
}

// MODALS

.modal.fade.show[data-bs-backdrop="false"] {
background-color: rgba(0,0,0,0.5);
position: fixed;
}

0 comments on commit f5e9d8a

Please sign in to comment.