[TASK] Make search field in install tool document viewer clearable 12/57412/2
authorAnja <aleichsenring@ab-softlab.de>
Thu, 28 Jun 2018 18:29:42 +0000 (20:29 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Mon, 2 Jul 2018 12:04:15 +0000 (14:04 +0200)
The clear button comes in handy after every performed search to
empty the search input field without need for several keystrokes
or the need to mark all chars and press the backspace key.

Change-Id: Ica0242934664c6639ade99a3fc52de1b043d3ed3
Resolves: #85421
Releases: master
Reviewed-on: https://review.typo3.org/57412
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christoph Pascher <c.pascher@browserwerk.de>
Tested-by: Christoph Pascher <c.pascher@browserwerk.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/install/Resources/Public/JavaScript/Modules/UpgradeDocs.js

index 038ebfe..90a355b 100644 (file)
@@ -22,7 +22,8 @@ define([
   'TYPO3/CMS/Install/Severity',
   'TYPO3/CMS/Backend/Notification',
   'bootstrap',
-  'chosen'
+  'chosen',
+  'jquery.clearable'
 ], function($, Router, ProgressBar, InfoBox, Severity, Notification) {
   'use strict';
 
@@ -82,6 +83,7 @@ define([
             modalContent.find('[data-toggle="tooltip"]').tooltip({container: 'body'});
             self.chosenField = modalContent.find(self.selectorChosenField);
             self.fulltextSearchField = modalContent.find(self.selectorFulltextSearch);
+            self.fulltextSearchField.clearable().focus();
             self.initializeChosenSelector();
             self.chosenField.on('change', function() {
               self.combinedFilterSearch();