mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 01:09:44 +02:00
use ajaxify.data.username instead of getting html
use ajaxify.data.username instead of getting html for toggleFollow
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user