[BUGFIX] Set focus on the search input field in page tree 36/55436/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Tue, 23 Jan 2018 14:14:16 +0000 (15:14 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Tue, 23 Jan 2018 15:39:47 +0000 (16:39 +0100)
After clicking on the filter button in the page tree,
the focus is set on the input field allowing to type
search word right away.

Resolves: #83535
Releases: master
Change-Id: I78c9b81e7c9e23efb4f9e8bf2d2a222a5e97436c
Reviewed-on: https://review.typo3.org/55436
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeToolbar.js

index dfbf4f3..7769ee0 100644 (file)
@@ -168,6 +168,7 @@ define(['jquery',
 
           $toolbar.find('[data-tree-submenu]').not($submenu).removeClass('active');
           $submenu.toggleClass('active', $this.hasClass('active'));
+          $submenu.find('input').focus();
         });
       });