From b986ad3d66219dce98db265f2521c4e029bf202e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 11 Mar 2014 21:55:05 +0100 Subject: [PATCH] Fixes missing key*-events for mobile Firefox --- wcfsetup/install/files/js/WCF.Label.js | 6 +++++- wcfsetup/install/files/js/WCF.User.js | 5 +++++ wcfsetup/install/files/js/WCF.js | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.Label.js b/wcfsetup/install/files/js/WCF.Label.js index cfde218ce5..03881e4bc9 100644 --- a/wcfsetup/install/files/js/WCF.Label.js +++ b/wcfsetup/install/files/js/WCF.Label.js @@ -20,11 +20,15 @@ WCF.Label.ACPList = Class.extend({ _labelList: [ ], /** - * Intitializes the ACP label list. + * Initializes the ACP label list. */ init: function() { this._labelInput = $('#label').keydown($.proxy(this._keyPressed, this)).keyup($.proxy(this._keyPressed, this)).blur($.proxy(this._keyPressed, this)); + if ($.browser.mozilla && $.browser.touch) { + this._labelInput.on('input', $.proxy(this._keyPressed, this)); + } + $('#labelList').find('input[type="radio"]').each($.proxy(function(index, input) { var $input = $(input); diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 543a1e0701..717297466e 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1175,6 +1175,11 @@ WCF.User.Registration.LostPassword = Class.extend({ this._email.keyup($.proxy(this._checkEmail, this)); this._username.keyup($.proxy(this._checkUsername, this)); + if ($.browser.mozilla && $.browser.touch) { + this._email.on('input', $.proxy(this._checkEmail, this)); + this._username.on('input', $.proxy(this._checkUsername, this)); + } + // toggle fields on init this._checkEmail(); this._checkUsername(); diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index fcc7901a83..7c6c3c5af5 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5657,6 +5657,11 @@ WCF.Search.Base = Class.extend({ } this._searchInput.keydown($.proxy(this._keyDown, this)).keyup($.proxy(this._keyUp, this)).wrap(''); + + if ($.browser.mozilla && $.browser.touch) { + this._searchInput.on('input', $.proxy(this._keyUp, this)); + } + this._list = $('