fix hidden links

This commit is contained in:
Barış Soner Uşaklı
2015-03-01 12:29:02 -05:00
parent 47adafb4d7
commit 73429e8771

View File

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