From 928f1a8655d494870828b839a94f413cda8a8186 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 13 May 2013 22:02:15 +0200 Subject: [PATCH] Fixed previous commit --- 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 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 { -- 2.20.1