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:
parent
c069414b1b
commit
55dd3747f7
|
@ -26,6 +26,10 @@ div#footer {
|
|||
background-position: 1em center;
|
||||
}
|
||||
|
||||
#notifications > li:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#notifications > li.info {
|
||||
background-color: @colorFormNotificationInfo;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue