From 8a9126575fc2fe3fb80c13c6f47303efe7fa4c34 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 7 Aug 2017 11:33:13 +0200 Subject: [PATCH] Focus recipient-input after it's been unhidden --- skins/elastic/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 6caa117ec..92addce0a 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -1436,7 +1436,9 @@ function rcube_elastic_ui() var target = '#compose_' + $(this).data('target'); $(this)[$(target).is(':visible') ? 'removeClass' : 'addClass']('active') - .off().on('click', function() { $(target).removeClass('hidden'); }); + .off().on('click', function() { + $(target).removeClass('hidden').find('.recipient-input').focus(); + }); }); };