From: Alexander Ebert Date: Mon, 13 May 2013 20:02:15 +0000 (+0200) Subject: Fixed previous commit X-Git-Tag: 2.0.0_Beta_1~192 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=928f1a8655d494870828b839a94f413cda8a8186;p=GitHub%2FWoltLab%2FWCF.git Fixed previous commit --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 24439cbadf..b666b3314d 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7377,7 +7377,7 @@ WCF.EditableItemList = Class.extend({ var $value = $.trim(this._searchInput.val()); // read everything left from caret position - if (event.which === 188) { + if (event && event.which === 188) { $value = $value.substring(0, this._searchInput.getCaret()); } @@ -7391,7 +7391,7 @@ WCF.EditableItemList = Class.extend({ }); // reset input - if (event.which === 188) { + if (event && event.which === 188) { this._searchInput.val($.trim(this._searchInput.val().substr(this._searchInput.getCaret()))); } else {