MDL-10201 Merged from MOODLE_19_STABLE
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user