$(document).on('catalog_filter_ajax_request', function (e, url, element) {
if(eventRequest){
eventRequest.abort();
}
$.ajax({
url: url,
type: 'GET',
dataType: 'html',
beforeSend: function(){
$('#ajax-container').addClass('loading');
},
success: function(response){
history.pushState(null, null, url);
$('#ajax-container').removeClass('loading');
$('#ajax-container').replaceWith($(response).find('#ajax-container'));
initDatePicker();
}
});
return false;
})