﻿function InitMasterPage() {

    $(".megamenu").megamenu();
    $("#LinkLogOut").click(function () { UserLogOut(); });

}



function UserLogOut() {

    //Lancer un appel JSON vers le service de déconnexion
    $.ajax({
        type: "POST",
        url: JsonServices + "/LogOut",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (data) {
            document.location.href = "/Login.aspx";
        },
        error: function (e, xhr) {
            alert(e); // erreur http xml technique
        }
    });

}
