﻿function LoadEventLog(actionUrl) {
    try {
        $("#divload").show();
        $.ajax({
            type: "GET",
            url: actionUrl,
            success: function (recData) {
                if (HandleInvalidState(recData) === true) {
                    $('#div_event').html(recData);
                    $("#divload").hide();
                    $("#btnEvent").click();
                }
            },
            error: function (xhr, textStatus, error) {
                $("#divload").hide();
                ShowError();
            }
        });
    }
    catch (err) {
        $("#divload").hide();
        ShowError();
    }
}
