Permalink
Browse files

Merge branch 'wip-MDL-38887-m24' of git://github.com/marinaglancy/moo…

…dle into MOODLE_24_STABLE
  • Loading branch information...
2 parents dec2c20 + 1179995 commit 6b9fc96f8e26c4dcb8960ad4f1d4542fa01b55f5 @nebgor nebgor committed Apr 9, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 blocks/navigation/yui/navigation/navigation.js
View
9 blocks/navigation/yui/navigation/navigation.js
@@ -348,10 +348,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) {

0 comments on commit 6b9fc96

Please sign in to comment.