Merge pull request #215 from Alkarex/notificationsMain
Fusionne notification.js dans main.jspull/322/head
commit
7cf5e8ef33
3 changed files with 19 additions and 18 deletions
@ -1,17 +0,0 @@ |
||||
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; |
||||
}); |
||||
} |
||||
}); |
Loading…
Reference in new issue