diff options
Diffstat (limited to 'public/scripts/notification.js')
| -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; + }); + } +}); |
