Support links on notifications

This commit is contained in:
Squidly271
2020-09-19 14:01:21 -04:00
parent d237b6a2a2
commit 5254db0fc6
2 changed files with 9 additions and 4 deletions
@@ -320,8 +320,10 @@ function notifier() {
group: notify.importance,
header: notify.event+': '+notify.timestamp,
theme: notify.file,
click: function(e,m,o) { if (notify.link) location=notify.link;},
beforeOpen: function(e,m,o){if ($('div.jGrowl-notification').hasClass(notify.file)) return(false);},
beforeClose: function(e,m,o){$.post('/webGui/include/Notify.php',{cmd:'archive',file:notify.file});}
beforeClose: function(e,m,o){$.post('/webGui/include/Notify.php',{cmd:'archive',file:notify.file});},
afterOpen: function(e,m,o){if (notify.link) $(e).css("cursor","pointer");}
});
<?endif;?>
});
@@ -717,4 +719,4 @@ $(function() {
});
</script>
</body>
</html>
</html>