[BUGFIX] Search in Install Tool must find input values 90/49390/2
authorFrank Naegler <frank.naegler@typo3.org>
Fri, 5 Aug 2016 13:47:03 +0000 (15:47 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 9 Aug 2016 11:31:24 +0000 (13:31 +0200)
Resolves: #77356
Releases: master, 7.6
Change-Id: I6127c03de37eb5b60dc13217e1f7528a4b628fa4
Reviewed-on: https://review.typo3.org/49390
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Resources/Public/JavaScript/Install.js

index aec0f61..d7cc4d5 100644 (file)
@@ -631,8 +631,14 @@ $(function() {
        });
        $('#configSearch').keyup(function() {
                var typedQuery = $(this).val();
-               $('div.item:contains(' + typedQuery + ')').removeClass('hidden').addClass('searchhit');
-               $('div.item').not(':contains(' + typedQuery + ')').removeClass('searchhit').addClass('hidden');
+               $('div.item').each(function() {
+                       var $item = $(this);
+                       if ($(':contains(' + typedQuery + ')', $item).length > 0 || $('input[value*="' + typedQuery + '"]', $item).length > 0) {
+                               $item.removeClass('hidden').addClass('searchhit');
+                       } else {
+                               $item.removeClass('searchhit').addClass('hidden');
+                       }
+               });
                $('.searchhit').parent().collapse('show');
        });
        var $searchFields = $('#configSearch');