MDL-69637 course: Avoid unnecessary aria labels

This commit is contained in:
james-cnz
2022-05-20 10:09:05 +12:00
committed by James C
parent 2affa30359
commit b24bef6b97
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -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());
}
}
};
-2
View File
@@ -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');