MDL-36125 course: Added aria-describedby for editing activity title

This commit is contained in:
Rajesh Taneja 2013-03-22 12:39:24 +08:00
parent 7112729206
commit fa1ccff866

View File

@ -516,7 +516,8 @@ YUI.add('moodle-course-toolboxes', function(Y) {
.setAttrs({
'name' : 'title',
'value' : titletext,
'autocomplete' : 'off'
'autocomplete' : 'off',
'aria-describedby' : 'id_editinstructions'
})
.addClass('titleeditor');
var editform = Y.Node.create('<form />')
@ -524,6 +525,7 @@ YUI.add('moodle-course-toolboxes', function(Y) {
.setAttribute('action', '#');
var editinstructions = Y.Node.create('<span />')
.addClass('editinstructions')
.setAttrs({'id' : 'id_editinstructions'})
.set('innerHTML', M.util.get_string('edittitleinstructions', 'moodle'));
var activityicon = element.one('img.activityicon').cloneNode();