mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
Add focus to autofocus form element on slide toggle
Signed-off-by: Felix A. Epp <work@felixepp.de>
This commit is contained in:
parent
e8adf53f77
commit
494c3b1533
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user