summaryrefslogtreecommitdiffstats
path: root/js-old/directive/NewsTriggerClick.js
diff options
context:
space:
mode:
Diffstat (limited to 'js-old/directive/NewsTriggerClick.js')
-rw-r--r--js-old/directive/NewsTriggerClick.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js-old/directive/NewsTriggerClick.js b/js-old/directive/NewsTriggerClick.js
new file mode 100644
index 000000000..6b9a66eb5
--- /dev/null
+++ b/js-old/directive/NewsTriggerClick.js
@@ -0,0 +1,19 @@
+/**
+ * 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('newsTriggerClick', function () {
+ 'use strict';
+
+ return function (scope, elm, attr) {
+ elm.click(function () {
+ $(attr.newsTriggerClick).trigger('click');
+ });
+ };
+
+}); \ No newline at end of file