summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsInstantNotification.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive/NewsInstantNotification.js')
-rw-r--r--js/directive/NewsInstantNotification.js10
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);
+ }
}
};