mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-72687 assign: fix stamp picker broken aria menu
This commit is contained in:
parent
62e5a4d19d
commit
e1fdd3f701
@ -1988,9 +1988,11 @@ Y.extend(STAMPPICKER, M.assignfeedback_editpdf.dropdown, {
|
||||
title = M.util.get_string('stamp', 'assignfeedback_editpdf');
|
||||
button = Y.Node.create('<button><img height="16" width="16" alt="' + title + '" src="' + stamp + '"/></button>');
|
||||
button.setAttribute('data-stamp', stamp);
|
||||
button.setAttribute('role', 'menuitem');
|
||||
button.setStyle('backgroundImage', 'none');
|
||||
listitem = Y.Node.create('<li/>');
|
||||
listitem.append(button);
|
||||
listitem.setAttribute('role', 'none');
|
||||
stamplist.append(listitem);
|
||||
}, this);
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -1988,9 +1988,11 @@ Y.extend(STAMPPICKER, M.assignfeedback_editpdf.dropdown, {
|
||||
title = M.util.get_string('stamp', 'assignfeedback_editpdf');
|
||||
button = Y.Node.create('<button><img height="16" width="16" alt="' + title + '" src="' + stamp + '"/></button>');
|
||||
button.setAttribute('data-stamp', stamp);
|
||||
button.setAttribute('role', 'menuitem');
|
||||
button.setStyle('backgroundImage', 'none');
|
||||
listitem = Y.Node.create('<li/>');
|
||||
listitem.append(button);
|
||||
listitem.setAttribute('role', 'none');
|
||||
stamplist.append(listitem);
|
||||
}, this);
|
||||
|
||||
|
@ -37,9 +37,11 @@ Y.extend(STAMPPICKER, M.assignfeedback_editpdf.dropdown, {
|
||||
title = M.util.get_string('stamp', 'assignfeedback_editpdf');
|
||||
button = Y.Node.create('<button><img height="16" width="16" alt="' + title + '" src="' + stamp + '"/></button>');
|
||||
button.setAttribute('data-stamp', stamp);
|
||||
button.setAttribute('role', 'menuitem');
|
||||
button.setStyle('backgroundImage', 'none');
|
||||
listitem = Y.Node.create('<li/>');
|
||||
listitem.append(button);
|
||||
listitem.setAttribute('role', 'none');
|
||||
stamplist.append(listitem);
|
||||
}, this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user