use ajaxify.data.username instead of getting html

use ajaxify.data.username instead of getting html for toggleFollow
This commit is contained in:
pichalite
2016-02-02 14:48:29 -08:00
parent 33033e3bc5
commit d133ff74bd

View File

@@ -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;
}