Skip to content

Commit b256e8f

Browse files
committed
Fixed an issue related to #17
1 parent cc6b05b commit b256e8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

syte/static/js/components/links.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
var $url;
12

23
function setupLinks() {
3-
var $url;
44

55
$('a').click(function(e) {
66
if (e.which == 2)
@@ -71,5 +71,8 @@ function setupLinks() {
7171
function adjustSelection(el) {
7272
$('.main-nav').children('li').removeClass('sel');
7373
$('#' + el).parent().addClass('sel');
74+
75+
if (el == 'home-link')
76+
$url = null;
7477
}
7578

0 commit comments

Comments
 (0)