﻿var MemberCommomSide = {
    PageSize : 9,
    Init: function () {
        if (VisitedUserId != '0' && IsOwner == 'False' && LoggedUserId != '0') {
            $.getJSON('/Service/Friend/FriendshipService.svc/GetFriendshipCommomList/' + VisitedUserId + '/' + LoggedUserId + '/0/' + this.PageSize, FriendCommomControlResult);
        }

        function FriendCommomControlResult(results) {
            if (results.Paging.RowsCount > 0) {
                $('.ucFriendCommomControl').removeClass('hide');

                $('#ucFriendCommomControl').LoadTemplate({
                    Data: results.Friendship,
                    TemplateName: 'tmpfriendHome',
                    UrlTemplate: '/Friend/AsyncTemplates/Friendship.htm'
                });
            }
        }
    }
}



