diff options
author | Felix A. Epp <work@felixepp.de> | 2016-10-22 14:15:58 +0200 |
---|---|---|
committer | Felix A. Epp <work@felixepp.de> | 2016-11-07 10:51:05 +0100 |
commit | 494c3b1533caa2a604777f378384319b6ae9e0a8 (patch) | |
tree | 7d3c275f6f9011ee0bf4cecfd9e2abe1b70019dc /core | |
parent | e8adf53f7704c2805b0637eaf571d8cc59054c3e (diff) | |
download | nextcloud-server-494c3b1533caa2a604777f378384319b6ae9e0a8.tar.gz nextcloud-server-494c3b1533caa2a604777f378384319b6ae9e0a8.zip |
Add focus to autofocus form element on slide toggle
Signed-off-by: Felix A. Epp <work@felixepp.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/apps.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/apps.js b/core/js/apps.js index a2d3460c907..3b94aa1d87e 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -79,6 +79,10 @@ area.slideDown(OC.menuSpeed*4, function() { area.trigger(new $.Event('show')); }); + var input = $(areaSelector + ' [autofocus]'); + if (input.length === 1) { + input.focus(); + } } // do nothing if the area is animated |