Browse files

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

  • Loading branch information...
1 parent 29f8c09 commit 6d1e592c2aad417e409a4285d070e9aae04a5b2d @rajeshtaneja rajeshtaneja committed Mar 22, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/yui/toolboxes/toolboxes.js
View
4 course/yui/toolboxes/toolboxes.js
@@ -509,14 +509,16 @@ 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 />')
.addClass('activityinstance')
.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();

0 comments on commit 6d1e592

Please sign in to comment.