mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 22:30:07 +01:00
closes #238
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
app.addCommasToNumbers();
|
||||
|
||||
|
||||
var followBtn = $('#follow-btn');
|
||||
var unfollowBtn = $('#unfollow-btn');
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
followBtn.show();
|
||||
unfollowBtn.hide();
|
||||
}
|
||||
} else {
|
||||
followBtn.hide();
|
||||
unfollowBtn.hide();
|
||||
}
|
||||
|
||||
followBtn.on('click', function() {
|
||||
@@ -51,9 +54,9 @@
|
||||
$('.user-recent-posts .topic-row').on('click', function() {
|
||||
ajaxify.go($(this).attr('topic-url'));
|
||||
});
|
||||
|
||||
|
||||
var onlineStatus = $('.account-online-status');
|
||||
|
||||
|
||||
function handleUserOnline(data) {
|
||||
if(data.online) {
|
||||
onlineStatus.find('span span').text('online');
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
followersCount = templates.get('followersCount');
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
if(parseInt(followersCount, 10) === 0) {
|
||||
$('#no-followers-notice').show();
|
||||
$('#no-followers-notice').removeClass('hide');
|
||||
}
|
||||
|
||||
|
||||
app.addCommasToNumbers();
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
}());
|
||||
@@ -5,9 +5,9 @@
|
||||
followingCount = templates.get('followingCount');
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
if(parseInt(followingCount, 10) === 0) {
|
||||
$('#no-following-notice').show();
|
||||
$('#no-following-notice').removeClass('hide');
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
$('.unfollow-btn').on('click',function() {
|
||||
var unfollowBtn = $(this);
|
||||
var followingUid = $(this).attr('followingUid');
|
||||
|
||||
|
||||
socket.emit('api:user.unfollow', {uid: followingUid}, function(success) {
|
||||
var username = unfollowBtn.attr('data-username');
|
||||
if(success) {
|
||||
@@ -34,6 +34,6 @@
|
||||
|
||||
app.addCommasToNumbers();
|
||||
});
|
||||
|
||||
|
||||
|
||||
}());
|
||||
@@ -19,8 +19,8 @@
|
||||
<span class="label label-danger">banned</span>
|
||||
</div>
|
||||
<div id="user-actions">
|
||||
<a id="follow-btn" href="#" class="btn hide">Follow</a>
|
||||
<a id="unfollow-btn" href="#" class="btn hide">Unfollow</a>
|
||||
<a id="follow-btn" href="#" class="btn btn-default">Follow</a>
|
||||
<a id="unfollow-btn" href="#" class="btn btn-default">Unfollow</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<span class='formatted-number'>{following.postcount}</span>
|
||||
<i class='icon-pencil'></i>
|
||||
</div>
|
||||
<a id="unfollow-btn" href="#" class="btn unfollow-btn" followingUid="{following.uid}" data-username="{following.username}">Unfollow</a>
|
||||
<a id="unfollow-btn" href="#" class="btn btn-default unfollow-btn" followingUid="{following.uid}" data-username="{following.username}">Unfollow</a>
|
||||
</div>
|
||||
<!-- END following -->
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user