events page: fix dismissable alert

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-10-29 08:18:06 +01:00
parent c50d2c15e8
commit a4009c8894
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -28,12 +28,17 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
{{end}} {{end}}
{{define "page_body"}} {{define "page_body"}}
<div id="errorMsg" class="alert alert-warning alert-dismissible fade show" style="display: none;" role="alert"> <div id="errorMsg" class="alert alert-warning fade show" style="display: none;" role="alert">
<span id="errorTxt"></span> <span id="errorTxt"></span>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> <button type="button" class="close" aria-label="Close" onclick="dismissErrorMsg();">
<span aria-hidden="true">&times;</span> <span aria-hidden="true">&times;</span>
</button> </button>
</div> </div>
<script type="text/javascript">
function dismissErrorMsg(){
$('#errorMsg').hide();
}
</script>
<div class="card shadow mb-4"> <div class="card shadow mb-4">
<div class="card-header py-3"> <div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Search logs</h6> <h6 class="m-0 font-weight-bold text-primary">Search logs</h6>