summaryrefslogtreecommitdiffstats
path: root/js-old/directive/NewsFinishedTransition.js
diff options
context:
space:
mode:
Diffstat (limited to 'js-old/directive/NewsFinishedTransition.js')
-rw-r--r--js-old/directive/NewsFinishedTransition.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js-old/directive/NewsFinishedTransition.js b/js-old/directive/NewsFinishedTransition.js
new file mode 100644
index 000000000..5dd5be017
--- /dev/null
+++ b/js-old/directive/NewsFinishedTransition.js
@@ -0,0 +1,20 @@
+/**
+ * Nextcloud - 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('newsFinishedTransition', function () {
+ 'use strict';
+
+ return function (scope, elem, attrs) {
+ elem.on('transitionend', function () {
+ elem.addClass(attrs.newsFinishedTransition);
+ });
+ };
+
+}); \ No newline at end of file