From: Alexander Ebert Date: Mon, 12 Nov 2012 00:42:41 +0000 (+0100) Subject: Fixed WCF.Search.Base X-Git-Tag: 2.0.0_Beta_1~787^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47573ca994c164a5707fa3cfad97e4c58ee1d6ce;p=GitHub%2FWoltLab%2FWCF.git Fixed WCF.Search.Base --- 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;