From 9a31ff37a5d57e113cc0500b84a3f22a6bdda4b0 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 10 Apr 2012 11:23:08 +0200 Subject: Lafargue: Make notifications disappear when clicked. --- static/js/lafargue.js | 3 +++ 1 file changed, 3 insertions(+) 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() { -- cgit v1.2.3