mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 00:15:46 +01:00
bold active section in account page
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
}());
|
}());
|
||||||
Reference in New Issue
Block a user