mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
MDL-36125 course: Added aria-describedby for editing activity title
This commit is contained in:
parent
7112729206
commit
fa1ccff866
1 changed files with 3 additions and 1 deletions
4
course/yui/toolboxes/toolboxes.js
vendored
4
course/yui/toolboxes/toolboxes.js
vendored
|
@ -516,7 +516,8 @@ YUI.add('moodle-course-toolboxes', function(Y) {
|
||||||
.setAttrs({
|
.setAttrs({
|
||||||
'name' : 'title',
|
'name' : 'title',
|
||||||
'value' : titletext,
|
'value' : titletext,
|
||||||
'autocomplete' : 'off'
|
'autocomplete' : 'off',
|
||||||
|
'aria-describedby' : 'id_editinstructions'
|
||||||
})
|
})
|
||||||
.addClass('titleeditor');
|
.addClass('titleeditor');
|
||||||
var editform = Y.Node.create('<form />')
|
var editform = Y.Node.create('<form />')
|
||||||
|
@ -524,6 +525,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
|
||||||
.setAttribute('action', '#');
|
.setAttribute('action', '#');
|
||||||
var editinstructions = Y.Node.create('<span />')
|
var editinstructions = Y.Node.create('<span />')
|
||||||
.addClass('editinstructions')
|
.addClass('editinstructions')
|
||||||
|
.setAttrs({'id' : 'id_editinstructions'})
|
||||||
.set('innerHTML', M.util.get_string('edittitleinstructions', 'moodle'));
|
.set('innerHTML', M.util.get_string('edittitleinstructions', 'moodle'));
|
||||||
var activityicon = element.one('img.activityicon').cloneNode();
|
var activityicon = element.one('img.activityicon').cloneNode();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue