summaryrefslogtreecommitdiffstats
path: root/js/build
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-31 03:00:15 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-31 03:00:15 +0200
commitb5e4dd0ee565058c63d3df25fcebf352149e8158 (patch)
tree5d4c4f2a8fdd07b84d23c7999fb6cec486a889a5 /js/build
parentdc5a746e1db21247c1ac2d2381d887a11e877aea (diff)
focus
Diffstat (limited to 'js/build')
-rw-r--r--js/build/app.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 85ecaf878..81b92d4d0 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -1606,6 +1606,20 @@ var $__build_47_app__ = function () {
};
}
]);
+ app.directive('newsFocus', [
+ '$timeout',
+ function ($timeout) {
+ 'use strict';
+ return function (scope, elem, attrs) {
+ elem.click(function () {
+ var toReadd = $(attrs.newsFocus);
+ $timeout(function () {
+ toReadd.focus();
+ }, 500);
+ });
+ };
+ }
+ ]);
app.directive('newsReadFile', function () {
'use strict';
return function (scope, elem, attr) {