use components

v1.18.x
pichalite 9 years ago
parent e6e4b5784d
commit ee47a13556

@ -90,8 +90,8 @@ define('forum/account/header', [
return app.alertError(err.message);
}
$('#follow-btn').toggleClass('hide', type === 'follow');
$('#unfollow-btn').toggleClass('hide', type === 'unfollow');
components.get('account/follow').toggleClass('hide', type === 'follow');
components.get('account/unfollow').toggleClass('hide', type === 'unfollow');
app.alertSuccess('[[global:alert.' + type + ', ' + ajaxify.data.username + ']]');
});
return false;

Loading…
Cancel
Save