MDL-72687 assign: fix stamp picker broken aria menu
This commit is contained in:
+2
@@ -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);
|
||||
|
||||
|
||||
+7
-7
File diff suppressed because one or more lines are too long
+2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user