summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsFocus.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-08-27 18:52:13 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-08-27 18:52:13 +0200
commitc7c2bf214c9cf6bde0c563ee68ffb5b61ed9734e (patch)
tree0d53bd6049bf05a5ddfae4957d950c124c791679 /js/directive/NewsFocus.js
parent924d8b5d63813a833db3ba86acb438fc7c456bc4 (diff)
editing
Diffstat (limited to 'js/directive/NewsFocus.js')
-rw-r--r--js/directive/NewsFocus.js4
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);