Merge branch 'wip-MDL-38887-m25' of git://github.com/marinaglancy/moodle
[moodle.git] / blocks / navigation / yui / src / navigation / js / navigation.js
index 71f2167..a6d0ed0 100644 (file)
@@ -361,10 +361,15 @@ BRANCH.prototype = {
         }
 
         if (!link) {
+            var branchspan = Y.Node.create('<span></span>');
             if (branchicon) {
-                branchp.appendChild(branchicon);
+                branchspan.appendChild(branchicon);
             }
-            branchp.append(this.get('name'));
+            branchspan.append(this.get('name'));
+            if (this.get('hidden')) {
+                branchspan.addClass('dimmed_text');
+            }
+            branchp.appendChild(branchspan);
         } else {
             var branchlink = Y.Node.create('<a title="'+this.get('title')+'" href="'+link+'"></a>');
             if (branchicon) {