From 1fa415a252964a7166aa5e3cda40bf41db273fce Mon Sep 17 00:00:00 2001 From: mike-esokia Date: Fri, 18 May 2018 13:13:07 +0400 Subject: [PATCH] Fix focus on input field on thesaurus dialog --- templates/web/thesaurus/thesaurus.html.twig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/web/thesaurus/thesaurus.html.twig b/templates/web/thesaurus/thesaurus.html.twig index d20a940d60..692d5ad355 100644 --- a/templates/web/thesaurus/thesaurus.html.twig +++ b/templates/web/thesaurus/thesaurus.html.twig @@ -88,7 +88,12 @@ modal: true, title: "???", autoOpen:false, - width:400 + width: 400, + open: function () { + $("#NEWSY_DLG input[type=\"text\"]").on('click', function () { + $(this).focus(); + }); + } }); }