summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsTriggerClick.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive/NewsTriggerClick.js')
-rw-r--r--js/directive/NewsTriggerClick.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/directive/NewsTriggerClick.js b/js/directive/NewsTriggerClick.js
index d5c43e442..a0a3f2904 100644
--- a/js/directive/NewsTriggerClick.js
+++ b/js/directive/NewsTriggerClick.js
@@ -7,11 +7,11 @@
* @author Bernhard Posselt <dev@bernhard-posselt.com>
* @copyright Bernhard Posselt 2014
*/
-app.directive('newsTriggerClick', () => {
+app.directive('newsTriggerClick', function () {
'use strict';
- return (scope, elm, attr) => {
- elm.click(() => {
+ return function (scope, elm, attr) {
+ elm.click(function () {
$(attr.newsTriggerClick).trigger('click');
});
};