v1.18.x
Anil Mandepudi 9 years ago committed by Julian Lam
parent 6e0a36909d
commit 0be557b846

@ -1,23 +1,26 @@
'use strict'; 'use strict';
/* globals define, app, config, ajaxify, socket, bootbox, translator */ /* globals define, app, config, ajaxify, socket, bootbox, templates */
define('forum/account/header', [ define('forum/account/header', [
'coverPhoto', 'coverPhoto',
'uploader', 'uploader',
'components' 'components',
], function(coverPhoto, uploader, components) { 'translator'
var AccountHeader = {}, ], function(coverPhoto, uploader, components, translator) {
yourid, var AccountHeader = {};
theirid; var yourid;
var theirid;
var isAdminOrSelfOrGlobalMod;
AccountHeader.init = function() { AccountHeader.init = function() {
yourid = ajaxify.data.yourid; yourid = ajaxify.data.yourid;
theirid = ajaxify.data.theirid; theirid = ajaxify.data.theirid;
isAdminOrSelfOrGlobalMod = ajaxify.data.isAdmin || ajaxify.data.isSelf || ajaxify.data.isGlobalModerator;
hidePrivateLinks(); hidePrivateLinks();
selectActivePill(); selectActivePill();
if (parseInt(yourid, 10) === parseInt(theirid, 10)) { if (isAdminOrSelfOrGlobalMod) {
setupCoverPhoto(); setupCoverPhoto();
} }

Loading…
Cancel
Save