/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,12): run-time error CSS1031: Expected selector, found '('
(1,12): run-time error CSS1025: Expected comma or open brace, found '('
(21,2): run-time error CSS1019: Unexpected token, found ')'
 */
$(function () {
    $('form input:not([type=image],[type=button],[type=submit]), form select').on('change', function (e) {
        // detect if change was made by user
        if (e.originalEvent) {
            $('body').data('modified', 'true');
        }
    });

    $("button[name='action:Vorige']").click(function () {
        if ($('body').data("modified") === "true") {
            $('#bevestigTerugkerenModal').modal('show');
        }
        else {
            window.location.href = $("button[name='action:Vorige']").first().data("url");
        }
    });

    $("#btnBevestigVorige").click(function () {
        window.location.href = $("button[name='action:Vorige']").first().data("url");
    });
});

