﻿function followUser(loggedInUserId, userToFollowId) {
    $.ajax({
        type: "GET",
        url: "/profile/networkmanagement.aspx",
        data: { lu: loggedInUserId, nu: userToFollowId, mode:'a' 
        },
        success: null
    });
    return false;
}

function ChangeText(followElement) {
    var text = $(followElement).text();
    if (text == "Follow") {
        $(followElement).text(text.replace("Follow", "Following"));
        $(followElement).addClass('IsFollowing');
        $(followElement).removeAttr('onclick');
    }
}

function StripOnClickAttr() {
    $('.IsFollowing').each(function () {
        $(this).removeAttr('onclick');
    });
}
