diff options
Diffstat (limited to 'js/directive/NewsFocus.js')
-rw-r--r-- | js/directive/NewsFocus.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/directive/NewsFocus.js b/js/directive/NewsFocus.js index 3ab2a85aa..f5133fd20 100644 --- a/js/directive/NewsFocus.js +++ b/js/directive/NewsFocus.js @@ -7,12 +7,12 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsFocus', ($timeout) => { +app.directive('newsFocus', ($timeout, $interpolate) => { 'use strict'; return (scope, elem, attrs) => { elem.click(() => { - let toReadd = $(attrs.newsFocus); + let toReadd = $($interpolate(attrs.newsFocus)(scope)); $timeout(() => { toReadd.focus(); }, 500); |