bold active section in account page

This commit is contained in:
Baris Usakli
2013-08-26 17:50:31 -04:00
parent d4d4c3cc92
commit c4228be86c
2 changed files with 33 additions and 23 deletions

View File

@@ -201,6 +201,10 @@ footer.footer {
font-weight:bold;
}
.bold {
font-weight: bold;
}
.account-block {
div {
padding-bottom:10px;

View File

@@ -14,7 +14,6 @@
</div>');
$('.account-username-box').append(links);
}
$(document).ready(function() {
@@ -31,6 +30,13 @@
favouritesLink.hide();
}
jQuery('.account-sub-links span a').removeClass('bold').each(function() {
var href = this.getAttribute('href');
if (window.location.href.indexOf(href) !== -1) {
jQuery(this).addClass('bold');
return false;
}
});
});
}());