1
0
mirror of https://github.com/chylex/Nextcloud-News.git synced 2025-08-21 12:54:07 +02:00
Files
admin
appinfo
bin
command
config
controller
cron
css
db
dependencyinjection
explore
fetcher
hooks
http
img
js
admin
app
build
controller
directive
AppNavigationEntryUtils.js
NewsAddFeed.js
NewsArticleActions.js
NewsAutoFocus.js
NewsBindUnsafeHtml.js
NewsDraggable.js
NewsDroppable.js
NewsFinishedTransition.js
NewsFocus.js
NewsInstantNotification.js
NewsPlayOne.js
NewsPullToRefresh.js
NewsReadFile.js
NewsScroll.js
NewsSearch.js
NewsStickyMenu.js
NewsStopPropagation.js
NewsTimeout.js
NewsTitleUnreadCount.js
NewsTriggerClick.js
filter
gui
plugin
service
tests
vendor
.bowerrc
.jshintrc
Gruntfile.js
README.md
bower.json
karma.conf.js
package.json
protractor.conf.js
l10n
plugin
service
templates
tests
utility
vendor
.gitignore
.mailmap
.scrutinizer.yml
.travis.yml
AUTHORS.md
CHANGELOG.md
CONTRIBUTING.md
COPYING
Makefile
README.md
composer.json
composer.lock
phpunit.integration.xml
phpunit.xml
Nextcloud-News/js/directive/NewsInstantNotification.js
2015-05-02 10:19:28 +02:00

24 lines
527 B
JavaScript

/**
* ownCloud - News
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
app.directive('newsInstantNotification', function () {
'use strict';
return {
restrict: 'E',
link: function (scope, elem) {
elem.hide();
var notification = elem.html();
OC.Notification.showHtml(notification);
}
};
});