Skip to content

Commit 68d4698

Browse files
committed
Fixed page.js.
1 parent 3198dcd commit 68d4698

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascripts/page.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ var Page = {
22
SiteLinks: {
33
highlight: function() {
44
var current_page = location.pathname;
5-
var $sitelink = $("div.site-links a[href=\"" + current_page + "\"]");
5+
var $sitelink = $("div.site-links a[href='" + current_page + "']");
66

7-
if ($sitelink) {
8-
$sitelink.css('text-weight: bold;');
7+
if ($sitelink != null) {
8+
$sitelink.css('font-weight', 'bold');
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)