]> git.mjollnir.org Git - moodle.git/commitdiff
Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" ...
authornfreear <nfreear>
Mon, 19 Nov 2007 15:25:16 +0000 (15:25 +0000)
committernfreear <nfreear>
Mon, 19 Nov 2007 15:25:16 +0000 (15:25 +0000)
lib/ajax/ajaxcourse.js

index 0dfd6de522787376c812b6d4162bdbe8e7a4c7fc..723140944ff776a41ffd2de348a412ac204af77e 100644 (file)
@@ -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]);                
         }
     }