_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);
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();
}
this._searchInput.keydown($.proxy(this._keyDown, this)).keyup($.proxy(this._keyUp, this)).wrap('<span class="dropdown" />');
+
+ if ($.browser.mozilla && $.browser.touch) {
+ this._searchInput.on('input', $.proxy(this._keyUp, this));
+ }
+
this._list = $('<ul class="dropdownMenu" />').insertAfter(this._searchInput);
this._commaSeperated = (commaSeperated) ? true : false;
this._oldSearchString = [ ];