From d133ff74bd6bd57878e201b023a08f82743a6209 Mon Sep 17 00:00:00 2001 From: pichalite Date: Tue, 2 Feb 2016 14:48:29 -0800 Subject: [PATCH] use ajaxify.data.username instead of getting html use ajaxify.data.username instead of getting html for toggleFollow --- public/src/client/account/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/account/header.js b/public/src/client/account/header.js index 95bd0fb0c2..2447920d04 100644 --- a/public/src/client/account/header.js +++ b/public/src/client/account/header.js @@ -92,7 +92,7 @@ define('forum/account/header', [ $('#follow-btn').toggleClass('hide', type === 'follow'); $('#unfollow-btn').toggleClass('hide', type === 'unfollow'); - app.alertSuccess('[[global:alert.' + type + ', ' + $('.account-username').html() + ']]'); + app.alertSuccess('[[global:alert.' + type + ', ' + ajaxify.data.username + ']]'); }); return false; }