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