MDL-27228: Fix label 'eye' does not match show/hide setting
authorTony Levi <tony.levi@netspot.com.au>
Mon, 18 Apr 2011 04:30:36 +0000 (14:00 +0930)
committerPetr Skoda <commits@skodak.org>
Sun, 21 Aug 2011 12:54:00 +0000 (14:54 +0200)
lib/ajax/section_classes.js

index 46420d2..0daf295 100644 (file)
@@ -566,7 +566,7 @@ resource_class.prototype.init_resource = function(id, group, config, parentObj)
 
     this.hidden = false;
     if (YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('a')[0], 'dimmed') ||
-        YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('div')[0], 'dimmed_text')) {
+        YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('div')[1], 'dimmed_text')) {
         this.hidden = true;
     }
     this.hiddenStored = null;