|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
'use strict';
|
|
|
|
|
/* globals define, app, ajaxify */
|
|
|
|
|
|
|
|
|
|
define('forum/account/header', function() {
|
|
|
|
|
var AccountHeader = {};
|
|
|
|
|
|
|
|
|
@ -7,11 +10,12 @@ 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() {
|
|
|
|
|
$('.account-sub-links li').removeClass('active').each(function() {
|
|
|
|
|