mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length.
This commit is contained in:
parent
9b50bd46ad
commit
11599e476d
@ -160,7 +160,7 @@ main_class.prototype.mk_button = function(tag, imgSrc, attributes, imgAttributes
|
||||
}
|
||||
}
|
||||
if (imgAttributes != null) {
|
||||
for (var c=0; c<attributes.length; c++) {
|
||||
for (var c=0; c<imgAttributes.length; c++) {
|
||||
image.setAttribute(imgAttributes[c][0], imgAttributes[c][1]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user