Dimiss the notification

This commit is contained in:
Paul Schneider 2025-08-25 12:58:25 +01:00
commit a98244a8d2
6 changed files with 189 additions and 6 deletions

View file

@ -53,3 +53,6 @@ input[type='checkbox'] {
a {
color: aquamarine;
background-color: black; }
a.close {
cursor: pointer; }

View file

@ -75,3 +75,8 @@ a {
color:aquamarine;
background-color: black;
}
a.close
{
cursor: pointer;
}

View file

@ -1,11 +1,11 @@
// Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
// for details on configuring this project to bundle and minify static web assets.
// Write your JavaScript code.

var notifClick =
function(nid) {
if (nid > 0) {
$.get('/api/dimiss/click/' + nid);
$.get({
url: '/api/dimiss/click/' + nid,
success: $('div[data-nid='+nid+']').remove()
});
}
};