fix accessibility for 'New' file inputs
This commit is contained in:
parent
7e5fbde4cd
commit
137d19f6b1
|
@ -574,10 +574,15 @@ OC.Upload = {
|
|||
var form = $('<form></form>');
|
||||
var input = $('<input type="text">');
|
||||
var newName = $(this).attr('data-newname') || '';
|
||||
var fileType = 'input-' + $(this).attr('data-type');
|
||||
if (newName) {
|
||||
input.val(newName);
|
||||
input.attr('id', fileType);
|
||||
}
|
||||
form.append(input);
|
||||
var label = $('<label class="hidden-visually" for="">' + newName + '</label>');
|
||||
label.attr('for', fileType);
|
||||
|
||||
form.append(label).append(input);
|
||||
$(this).append(form);
|
||||
var lastPos;
|
||||
var checkInput = function () {
|
||||
|
|
Loading…
Reference in New Issue