summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/lafargue.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/js/lafargue.js b/static/js/lafargue.js
index 86ef035..645d355 100644
--- a/static/js/lafargue.js
+++ b/static/js/lafargue.js
@@ -11,6 +11,9 @@ jQuery(function($) {
if (window.webkitNotifications && notificationsp) {
var notification = window.webkitNotifications.createNotification('', 'Lafargue', 'New message by ' + message.first_name);
notification.show();
+ notification.onclick = function() {
+ notification.cancel();
+ };
}
};
var reconnect = function() {