diff options
| author | 2014-09-15 16:19:12 +0200 | |
|---|---|---|
| committer | 2014-09-15 16:19:12 +0200 | |
| commit | 6374f9ec98a132a810efa3e651bd800bcf541340 (patch) | |
| tree | 7ea4dc617eb452ece9920c8a7a92643964257b88 /p/scripts | |
| parent | 2aa3b5d7ff943e55ea844acf18e3c599a41ec1ad (diff) | |
Use setTimeout instead of setInterval (JavaScript)
See https://github.com/marienfressinaud/FreshRSS/pull/585
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 2108eece2..6eb7fdd72 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -787,7 +787,7 @@ function openNotification(msg, status) { notification.find(".msg").html(msg); notification.fadeIn(300); - notification_interval = window.setInterval(closeNotification, 4000); + notification_interval = window.setTimeout(closeNotification, 4000); } function closeNotification() { @@ -810,7 +810,7 @@ function init_notifications() { if (notification.find(".msg").html().length > 0) { notification_working = true; - notification_interval = window.setInterval(closeNotification, 4000); + notification_interval = window.setTimeout(closeNotification, 4000); } } // </notification> @@ -1224,7 +1224,7 @@ function init_all() { faviconNbUnread(); init_print_action(); init_notifs_html5(); - window.setInterval(refreshUnreads, 120000); + window.setTimeout(refreshUnreads, 120000); } else { init_share_observers(); init_remove_observers(); |
