Skip to content

Node.js based forum software built for the modern web

moved account menu to partial

barisusakli3a5048a6cdbb
diff --git a/public/src/forum/accountheader.js b/public/src/forum/accountheader.js
index 5ef0233fbb..4ff2f1be63 100644
--- a/public/src/forum/accountheader.js
+++ b/public/src/forum/accountheader.js
@@ -3,35 +3,11 @@ define(function() {
AccountHeader.init = function() {
- AccountHeader.createMenu();
-
hideLinks();
selectActivePill();
};
- AccountHeader.createMenu = function() {
- var userslug = $('.account-username-box').attr('data-userslug');
-
- var html ='<ul class="nav nav-pills account-sub-links">\
- <li id="settingsLink"><a href="' + RELATIVE_PATH + '/user/' + userslug + '/settings">[[user:settings]]</a></li>\
- <li id="favouritesLink"><a href="' + RELATIVE_PATH + '/user/' + userslug + '/favourites">[[user:favourites]]</a></li>\
- <li><a href="' + RELATIVE_PATH + '/user/' + userslug + '/posts">[[global:posts]]</a></li>\
- <li><a href="' + RELATIVE_PATH + '/user/' + userslug + '/topics">[[topic:topics]]</a></li>\
- <li><a href="' + RELATIVE_PATH + '/user/' + userslug + '/followers">[[user:followers]]</a></li>\
- <li><a href="' + RELATIVE_PATH + '/user/' + userslug + '/following">[[user:following]]</a></li>\
- <li id="editLink"><a href="' + RELATIVE_PATH + '/user/' + userslug + '/edit">[[user:edit]]</a></li>\
- <li id="profile"><a href="' + RELATIVE_PATH + '/user/' + userslug + '">[[user:profile]]</a></li>\
- </ul>';
-
-
- translator.translate(html, function(translatedHtml) {
- $('.account-username-box').append(translatedHtml);
- selectActivePill();
- hideLinks();
- });
- };
-
function hideLinks() {
var yourid = ajaxify.variables.get('yourid'),
theirid = ajaxify.variables.get('theirid');