From fcc286a4e90f2ecb49a48ed7df705b787a896cdc Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Wed, 8 Oct 2008 09:10:05 +0000 Subject: [PATCH] MDL-10201 Merged from MOODLE_19_STABLE --- lib/ajax/section_classes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ajax/section_classes.js b/lib/ajax/section_classes.js index 44d2185ed48..f294b6f66b5 100755 --- a/lib/ajax/section_classes.js +++ b/lib/ajax/section_classes.js @@ -526,7 +526,8 @@ resource_class.prototype.init_resource = function(id, group, config, parentObj) this.id = this.getEl().id.replace(/module-/i, ''); this.hidden = false; - if (YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('a')[0], 'dimmed')) { + if (YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('a')[0], 'dimmed') || + YAHOO.util.Dom.hasClass(this.getEl().getElementsByTagName('div')[0], 'dimmed_text')) { this.hidden = true; } this.hiddenStored = null;