Merge pull request #4142 from pichalite/master

use ajaxify.data.username instead of getting html
v1.18.x
psychobunny 9 years ago
commit 2560e6345f

@ -92,7 +92,7 @@ define('forum/account/header', [
$('#follow-btn').toggleClass('hide', type === 'follow'); $('#follow-btn').toggleClass('hide', type === 'follow');
$('#unfollow-btn').toggleClass('hide', type === 'unfollow'); $('#unfollow-btn').toggleClass('hide', type === 'unfollow');
app.alertSuccess('[[global:alert.' + type + ', ' + $('.account-username').html() + ']]'); app.alertSuccess('[[global:alert.' + type + ', ' + ajaxify.data.username + ']]');
}); });
return false; return false;
} }

Loading…
Cancel
Save