From 209fb252dcce8b69d05f796a914beb0e0bb7f9eb Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Mon, 5 Nov 2012 21:40:58 +0100 Subject: Fix issue #4 : ajout des retours utilisateur --- public/scripts/notification.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/scripts/notification.js (limited to 'public/scripts') diff --git a/public/scripts/notification.js b/public/scripts/notification.js new file mode 100644 index 000000000..a3a874c12 --- /dev/null +++ b/public/scripts/notification.js @@ -0,0 +1,17 @@ +function closeNotification () { + $("#notification").slideUp (200, function () { + $("#notification").remove (); + }); +} + +$(document).ready (function () { + notif = $("#notification"); + if (notif[0] !== undefined) { + timer = setInterval('closeNotification()', 5000); + + notif.find ("a.close").click (function () { + closeNotification (); + return false; + }); + } +}); -- cgit v1.2.3