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; font-weight:bold;
} }
.bold {
font-weight: bold;
}
.account-block { .account-block {
div { div {
padding-bottom:10px; padding-bottom:10px;

View File

@@ -14,7 +14,6 @@
</div>'); </div>');
$('.account-username-box').append(links); $('.account-username-box').append(links);
} }
$(document).ready(function() { $(document).ready(function() {
@@ -31,6 +30,13 @@
favouritesLink.hide(); 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;
}
});
}); });
}()); }());