From 494c3b1533caa2a604777f378384319b6ae9e0a8 Mon Sep 17 00:00:00 2001 From: "Felix A. Epp" Date: Sat, 22 Oct 2016 14:15:58 +0200 Subject: [PATCH] Add focus to autofocus form element on slide toggle Signed-off-by: Felix A. Epp --- core/js/apps.js | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5