/* Minification failed. Returning unminified contents.
(1,1): run-time error CSS1019: Unexpected token, found '$'
(1,2): run-time error CSS1019: Unexpected token, found '('
(1,9): run-time error CSS1031: Expected selector, found ')'
(1,9): run-time error CSS1025: Expected comma or open brace, found ')'
(11,2): run-time error CSS1019: Unexpected token, found ')'
(17,10): run-time error CSS1031: Expected selector, found 'iFacRglCallback('
(17,10): run-time error CSS1025: Expected comma or open brace, found 'iFacRglCallback('
(30,10): run-time error CSS1031: Expected selector, found 'sVergelijkingCallback('
(30,10): run-time error CSS1025: Expected comma or open brace, found 'sVergelijkingCallback('
 */
$(window).on('load', function () {
    $(document).on('click touchstart', ".delete-vergelijk", function () {
        console.log($(this).data('id'));
        var odata = {
            iArtikelID: $(this).data('id'),
            bToevoegen: false
        }
        AjaxRequest("POST", "/Data/shopping-cart.aspx/iFacRgl", odata, "", "json", "iFacRglCallback");
    });
    AjaxRequest("POST", "/Data/shopping-cart.aspx", "", "", "html", "sVergelijkingCallback");
});

//$(document).ready(function () {
//    $('.height-equal').css({ 'min-height': $('.JS-occHolder .content').innerHeight() });
//});

function iFacRglCallback() {

    console.log(sMsg.d.code);
    if (sMsg.d.code === 1) {
        AjaxRequest("POST", "/Data/shopping-cart.aspx", "", "", "html", "sVergelijkingCallback");

        return true;
    } else {
        $('.compare').addClass('active');
        $(".loading").hide();
        return false;
    }
}
function sVergelijkingCallback() {
    console.log('sVergelijkingCallback');
    $('.JS-occHolder').html($('#vergelijken', $(sMsg)));
}

