From 47573ca994c164a5707fa3cfad97e4c58ee1d6ce Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 12 Nov 2012 01:42:41 +0100 Subject: [PATCH] Fixed WCF.Search.Base --- wcfsetup/install/files/js/WCF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 10d1c428b8..c3bc2f6331 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -4740,7 +4740,7 @@ WCF.Search.Base = Class.extend({ var $result = $listItem.data('label'); for (var $i = 0, $length = this._oldSearchString.length; $i < $length; $i++) { var $part = this._oldSearchString[$i]; - if ($result.indexOf($part) === 0) { + if ($result.toLowerCase().indexOf($part.toLowerCase()) === 0) { this._oldSearchString[$i] = $result; this._searchInput.attr('value', this._oldSearchString.join(', ')); @@ -4751,7 +4751,7 @@ WCF.Search.Base = Class.extend({ } // set focus on input field again - var $position = this._searchInput.val().indexOf($result) + $result.length; + var $position = this._searchInput.val().toLowerCase().indexOf($result.toLowerCase()) + $result.length; this._searchInput.focus().setCaret($position); break; -- 2.20.1