Fixed JavaScript error
authorAlexander Ebert <ebert@woltlab.com>
Tue, 30 Jul 2013 13:36:53 +0000 (15:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 30 Jul 2013 13:36:53 +0000 (15:36 +0200)
wcfsetup/install/files/js/WCF.js

index 635913168614e494f3e54f113df7b080088f8e0a..580883189ab0bc5700108ec120203aacd3be94bf 100755 (executable)
@@ -7656,7 +7656,7 @@ WCF.EditableItemList = Class.extend({
        _keyDown: function(event) {
                // 188 = [,]
                if (event === null || event.which === 188 || event.which === $.ui.keyCode.ENTER) {
-                       if (event.which === $.ui.keyCode.ENTER && this._search) {
+                       if (event !== null && event.which === $.ui.keyCode.ENTER && this._search) {
                                if (this._search._itemIndex !== -1) {
                                        return false;
                                }