MDL-10201 Merged from MOODLE_19_STABLE

This commit is contained in:
nicolasconnault 2008-10-08 09:10:05 +00:00
parent cc934d000b
commit fcc286a4e9

View File

@ -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;