Skip to content

Commit a4009c8

Browse files
committed
events page: fix dismissable alert
Signed-off-by: Nicola Murino <[email protected]>
1 parent c50d2c1 commit a4009c8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

templates/webadmin/events.html

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@
2828
{{end}}
2929

3030
{{define "page_body"}}
31-
<div id="errorMsg" class="alert alert-warning alert-dismissible fade show" style="display: none;" role="alert">
31+
<div id="errorMsg" class="alert alert-warning fade show" style="display: none;" role="alert">
3232
<span id="errorTxt"></span>
33-
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
33+
<button type="button" class="close" aria-label="Close" onclick="dismissErrorMsg();">
3434
<span aria-hidden="true">&times;</span>
3535
</button>
3636
</div>
37+
<script type="text/javascript">
38+
function dismissErrorMsg(){
39+
$('#errorMsg').hide();
40+
}
41+
</script>
3742
<div class="card shadow mb-4">
3843
<div class="card-header py-3">
3944
<h6 class="m-0 font-weight-bold text-primary">Search logs</h6>

0 commit comments

Comments
 (0)