summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-05-02 10:19:19 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-05-02 10:19:28 +0200
commit8313074915401859de4e6236fa14f9ad428451f5 (patch)
tree0a9eabf7509566ad1dee4fe5df46361929736eb1 /js/build/app.js
parent0f88a5283349097362bf384bd114ca68b1a4bc02 (diff)
use system notifications, fix #779
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
*/