notifications: remove on click

This allows one to get rid of them faster in case access to the
underlying content is needed
This commit is contained in:
Thomas Gelf 2015-06-18 13:29:47 +02:00
parent c069414b1b
commit 55dd3747f7
2 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,10 @@ div#footer {
background-position: 1em center;
}
#notifications > li:hover {
cursor: pointer;
}
#notifications > li.info {
background-color: @colorFormNotificationInfo;
}

View File

@ -105,6 +105,9 @@
// We catch scroll events in our containers
$('.container').on('scroll', { self: this }, this.icinga.events.onContainerScroll);
// Remove notifications on click
$(document).on('click', '#notifications li', function () { $(this).remove(); });
// We want to catch each link click
$(document).on('click', 'a', { self: this }, this.linkClicked);
$(document).on('click', 'tr[href]', { self: this }, this.linkClicked);