summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 58ce9d426..20330a0b8 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -2687,6 +2687,20 @@ app.directive('newsFocus', ["$timeout", "$interpolate", function ($timeout, $int
};
}]);
+app.directive('newsInstantNotification', function () {
+ 'use strict';
+
+ return {
+ restrict: 'E',
+ link: function (scope, elem) {
+ elem.hide();
+
+ var notification = elem.html();
+ OC.Notification.showHtml(notification);
+ }
+ };
+
+});
/**
* Pause playback on elements other than the current one
*/