$(function() {
    var $friend_request_button = $("#send-friend-request-button");
    var $friend_request_sent_message = $("#friend-request-sent-message");

    $friend_request_button.on('click', function () {
        var $that = $(this);
        $.post($that.data('url'), function () {
            $that.hide();
            $friend_request_sent_message.show()
        });
    });
});

@@ -148,16 +148,112 @@
 ssage%22);
+%0A    var $follow_button = $(%22#follow-button%22);%0A    var $unfollow_button = $(%22#unfollow-button%22);
 %0A%0A    $f
@@ -402,16 +402,51 @@
 hide();%0A
+            $follow_button.hide();%0A
         
@@ -485,16 +485,53 @@
 .show()%0A
+            $unfollow_button.show();%0A
         

Update UI to represent that author is also followed when you send a friend request