[459060] JS error on contribute.m.o detail pages; p+r=me
authorZbigniew Braniecki (zbraniecki@mozilla.com)
Wed, 08 Oct 2008 11:51:47 -0700
changeset 15 72a092f5e4bb2f12ecfc2362efa416ada2ae1dd4
parent 14 94cc4dfb2a10228ffc74a2bf703aecc92bf3e657
child 16 4e86829de61d8135fb02889766e4603bbde374c3
push id4
push userzbraniecki@mozilla.com
push dateWed, 08 Oct 2008 18:52:12 +0000
bugs459060
[459060] JS error on contribute.m.o detail pages; p+r=me
mediawiki/skins/cmo/js/index.js
--- a/mediawiki/skins/cmo/js/index.js
+++ b/mediawiki/skins/cmo/js/index.js
@@ -7,17 +7,17 @@ function prepareAnimator () {
   ap.addKF(9, {opacity:0})
 
   ap2 = new AnimationPath();
   ap2.addKF(0, {opacity:0})
   ap2.addKF(9, {opacity:1})
 
 
   var tboxes = document.getElementsByClassName('topicbox')
-  for (var j=0;j<4;j++) {
+  for (var j=0;j<tboxes.length;j++) {
     elems = tboxes[j].getElementsByTagName('td')
     for (var i=0;i<elems.length;i++) {
       longdesc = elems[i].getElementsByClassName('longdesc');
       if (longdesc.length < 1)
         continue;
       var elem = elems[i]
   
       var a = new Animator();