Permalink
Browse files

MDL-10201 Back-ported from MOODLE_19_STABLE

  • Loading branch information...
nicolasconnault
nicolasconnault committed May 4, 2009
1 parent 1c0cdbf commit 9ea5a54685d73172691876379f3a3d5ce9f7c80d
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ajax/section_classes.js
@@ -516,9 +516,10 @@ 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('span')[0], 'dimmed_text')) {
this.hidden = true;
- }
+ }
this.hiddenStored = null;
this.groupmode = null; // Can be null (i.e. does not apply), 0, 1 or 2.

0 comments on commit 9ea5a54

Please sign in to comment.