Skip to content

Commit

Permalink
fix #83: Info dialogs auto-hide
Browse files Browse the repository at this point in the history
  • Loading branch information
chinenual committed Jun 17, 2024
1 parent 8f2bd2b commit a2d271f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/app/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ let index = {
}
console.log("INFO NOTIFICATION: " + message)
document.getElementById("alertTitle").innerHTML = "Info";
document.getElementById("alertText").innerHTML = message;
document.getElementById("alertText").innerHTML = message;
// Make alert messages hide themselves after 3s - no need to click
setTimeout(function(){
$('#alertModal').modal('hide');
}, 3000);
$('#alertModal').modal();
},

Expand Down

0 comments on commit a2d271f

Please sign in to comment.