diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-13 21:09:18 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2016-04-13 21:09:18 +0200 |
commit | db10a37080730d3a1957b858f8bdc1710801bcbe (patch) | |
tree | be622672fa5bee033b59594dc33060fac7f71b55 /js/directive/NewsInstantNotification.js | |
parent | 87cd4f362396d754632bad842daedac4d8741307 (diff) |
Better cron warning message, do not run feed updates when in ajax or web cron mode
Diffstat (limited to 'js/directive/NewsInstantNotification.js')
-rw-r--r-- | js/directive/NewsInstantNotification.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/directive/NewsInstantNotification.js b/js/directive/NewsInstantNotification.js index f66db3d69..893da8f7c 100644 --- a/js/directive/NewsInstantNotification.js +++ b/js/directive/NewsInstantNotification.js @@ -10,14 +10,16 @@ app.directive('newsInstantNotification', function () { 'use strict'; - + var shown = false; return { restrict: 'E', link: function (scope, elem) { elem.hide(); - - var notification = elem.html(); - OC.Notification.showHtml(notification); + if (!shown) { + shown = true; + var notification = elem.html(); + OC.Notification.showHtml(notification); + } } }; |