Skip to content

Commit

Permalink
Flipped the logic for #587
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSmith-LT committed Mar 2, 2017
1 parent 436c784 commit a1c736e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Expand Up @@ -53,7 +53,7 @@
}
var pageNum = x_params.tocNumbers == "false" ? "" : (i+1) + ") ";
$thisItem.html(pageNum + x_pages[i+numOffset].getAttribute("name"));
$thisItem.append(' <i class="fa fa-check-circle" aria-hidden="true"></i>');
$thisItem.append(' <i class="fa fa-check-circle notvisited" aria-hidden="true"></i>');
}

$("#menuItems .menuItem")
Expand Down Expand Up @@ -128,7 +128,7 @@
}

$("#menuItems .menuItem").each(function(i) {
if (x_pageInfo[i].built) $(this).find('i').addClass('visited');
if (x_pageInfo[i].built) $(this).find('i').removeClass('notvisited');
});
}

Expand Down Expand Up @@ -166,6 +166,10 @@
margin-bottom: 5px;
text-align: left;
}

#menuItems .menuItem .notvisited {
display: none;
}

#menuItems {
width: 100%;
Expand Down
10 changes: 0 additions & 10 deletions themes/Nottingham/btnTopPurple/btnTopPurple.css
Expand Up @@ -90,16 +90,6 @@ h3 {
border-color: #D4CB43 !important;
}

#menuItems .menuItem i {
display: none;
}

#menuItems .menuItem i.visited {
display: block;
float: right;
margin: 2px -8px 0 0;
}

.ui-dialog #menuItems .ui-state-default {
background: none;
color: black;
Expand Down

0 comments on commit a1c736e

Please sign in to comment.