Hi Hackers, Attached is the small patch to fix the cross button of alert-box, which wasn't working on the login page (server mode).
Please review. PFA. -- Regards, Yogesh Jain 8982696654
diff --git a/web/pgadmin/templates/security/messages.html b/web/pgadmin/templates/security/messages.html index 6c66267..6fc11e0 100644 --- a/web/pgadmin/templates/security/messages.html +++ b/web/pgadmin/templates/security/messages.html @@ -2,12 +2,17 @@ {% if messages %} <div style="position: fixed; top: 20px; right: 20px; width: 400px; z-index: 9999"> {% for category, message in messages %} - <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert"> + <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert" id="alertbox"> {{ message }} - <button type="button" class="close" data-dismiss="alert" aria-label="{{ _('Close') }}"><span + <button onclick="hide()" type="button" class="close" data-dismiss="alert" aria-label="{{ _('Close') }}"><span aria-hidden="true">×</span></button> </div> {% endfor %} </div> +<script> +function hide(){ + document.getElementById("alertbox").classList.remove("show"); +} +</script> {% endif %} {%- endwith %}