MDL-69637 course: Avoid unnecessary aria labels
This commit is contained in:
@@ -83,8 +83,6 @@ M.course.format.process_sections = function(Y, sectionlist, response, sectionfro
|
||||
stridx = str.lastIndexOf(' ');
|
||||
newstr = str.substr(0, stridx + 1) + i;
|
||||
ele.setAttribute('title', newstr);
|
||||
// Update the aria-label for the section.
|
||||
sectionlist.item(i).setAttribute('aria-label', content.get('innerText').trim());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -86,8 +86,6 @@ M.course.format.process_sections = function(Y, sectionlist, response, sectionfro
|
||||
stridx = str.lastIndexOf(' ');
|
||||
newstr = str.substr(0, stridx +1) + i;
|
||||
ele.setAttribute('title', newstr);
|
||||
// Update the aria-label for the section.
|
||||
sectionlist.item(i).setAttribute('aria-label', content.get('innerText').trim());
|
||||
|
||||
// Remove the current class as section has been moved.
|
||||
sectionlist.item(i).removeClass('current');
|
||||
|
||||
Reference in New Issue
Block a user