Permalink
Browse files

MDL-38887 dim hidden branches in navigation expanded via AJAX requests

  • Loading branch information...
1 parent bd11908 commit 11799954dc58bd9a25970c397c5550714aec5f27 @marinaglancy marinaglancy committed Apr 4, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 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 1179995

Please sign in to comment.