diff options
| author | 2012-11-05 21:40:58 +0100 | |
|---|---|---|
| committer | 2012-11-05 21:40:58 +0100 | |
| commit | 209fb252dcce8b69d05f796a914beb0e0bb7f9eb (patch) | |
| tree | 90b5e72a280f5bae15e4d7895f4f6fc9adb34fce /public/scripts | |
| parent | 33e47c5ac4cb622b51b0b23c7cad03d91ca1e26c (diff) | |
Fix issue #4 : ajout des retours utilisateur
Diffstat (limited to 'public/scripts')
| -rw-r--r-- | public/scripts/notification.js | 17 |
1 files changed, 17 insertions, 0 deletions
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; + }); + } +}); |
