summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 11:23:08 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-04-10 11:23:08 +0200
commit9a31ff37a5d57e113cc0500b84a3f22a6bdda4b0 (patch)
tree1eea01574503f3c4eb9f32d8b14f0027fd7d8b76
parent297c259cd527b68e006a417266c4b9be8270e988 (diff)
Lafargue: Make notifications disappear when clicked.
-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() {