|
|
|
@ -5,15 +5,13 @@ define('forum/account/header', function() {
|
|
|
|
|
var AccountHeader = {};
|
|
|
|
|
|
|
|
|
|
AccountHeader.init = function() {
|
|
|
|
|
displayAccountMenus();
|
|
|
|
|
hidePrivateLinks();
|
|
|
|
|
selectActivePill();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function displayAccountMenus() {
|
|
|
|
|
function hidePrivateLinks() {
|
|
|
|
|
if (!app.user.uid || app.user.uid !== parseInt(ajaxify.variables.get('theirid'), 10)) {
|
|
|
|
|
$('.account-sub-links .plugin-link.private').each(function() {
|
|
|
|
|
$(this).addClass('hide');
|
|
|
|
|
});
|
|
|
|
|
$('.account-sub-links .plugin-link.private').addClass('hide');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|