diff options
| author | 2014-09-18 13:34:22 +0200 | |
|---|---|---|
| committer | 2014-09-18 13:34:22 +0200 | |
| commit | ca74b2fca3711ef80542cc69269b2d9a654e3e5a (patch) | |
| tree | 4416f3bbe2d2d559557630c8a81bd5c27d6300d0 /p/scripts/main.js | |
| parent | 5c752f71e9bd07d2e8f9ffd4b246cf4216c7a85f (diff) | |
| parent | 0c012b006c868db294b1c227f82fb5861075001f (diff) | |
Merge pull request #620 from plopoyop/dev
Ajout d'un timeout pour la notification HTML5
Diffstat (limited to 'p/scripts/main.js')
| -rw-r--r-- | p/scripts/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index fd49d62ba..c568bac35 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -866,6 +866,12 @@ function notifs_html5_show(nb) { notification.onclick = function() { window.location.reload(); } + + if (html5_notif_timeout !== 0){ + setTimeout(function() { + notification.close(); + }, html5_notif_timeout * 1000); + } } function init_notifs_html5() { |
