this._fileUpload = $('<input type="file" name="' + this._name + '" ' + (this._options.multiple ? 'multiple="true" ' : '') + '/>');
this._fileUpload.change($.proxy(this._upload, this));
var $button = $('<p class="button uploadButton"><span>' + WCF.Language.get('wcf.global.button.upload') + '</span></p>');
+ elAttr($button[0], 'role', 'button');
+ elAttr($button[0], 'tabindex', '0');
$button.prepend(this._fileUpload);
}
else {
var $button = $('<p class="button uploadFallbackButton"><span>' + WCF.Language.get('wcf.global.button.upload') + '</span></p>');
+ elAttr($button[0], 'role', 'button');
+ elAttr($button[0], 'tabindex', '0');
$button.click($.proxy(this._showOverlay, this));
}
this._button = elCreate('p');
this._button.className = 'button uploadButton';
+ elAttr(this._button, 'role', 'button');
+ elAttr(this._button, 'tabindex', '0');
var span = elCreate('span');
span.textContent = Language.get('wcf.global.button.upload');