|
|
@ -59,7 +59,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="user-actions" class="container">
|
|
|
|
<div id="user-actions" class="container">
|
|
|
|
<a id="add-friend-btn" href="#" class="btn">Add Friend</a>
|
|
|
|
<a id="add-friend-btn" href="#" class="btn">Follow</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<div id="user-action-alert" class="alert alert-success hide"></div>
|
|
|
|
<div id="user-action-alert" class="alert alert-success hide"></div>
|
|
|
@ -104,16 +104,14 @@ var theirid = '{theirid}';
|
|
|
|
addFriendBtn.on('click', function() {
|
|
|
|
addFriendBtn.on('click', function() {
|
|
|
|
$.post('/users/addfriend', {uid: theirid},
|
|
|
|
$.post('/users/addfriend', {uid: theirid},
|
|
|
|
function(data) {
|
|
|
|
function(data) {
|
|
|
|
|
|
|
|
addFriendBtn.remove();
|
|
|
|
$('#user-action-alert').html('Friend Added!').show();
|
|
|
|
$('#user-action-alert').html('Friend Added!').show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}());
|
|
|
|
}());
|
|
|
|
</script>
|
|
|
|
</script>
|