diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-08-27 18:52:13 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-08-27 18:52:13 +0200 |
commit | c7c2bf214c9cf6bde0c563ee68ffb5b61ed9734e (patch) | |
tree | 0d53bd6049bf05a5ddfae4957d950c124c791679 /js/directive/NewsFocus.js | |
parent | 924d8b5d63813a833db3ba86acb438fc7c456bc4 (diff) |
editing
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); |