Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-10201 Back-ported from MOODLE_19_STABLE

  • Loading branch information...
commit 9ea5a54685d73172691876379f3a3d5ce9f7c80d 1 parent 1c0cdbf
nicolasconnault authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/ajax/section_classes.js
View
5 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.
Please sign in to comment.
Something went wrong with that request. Please try again.