Skip to content

Instantly share code, notes, and snippets.

@Ginnw2
Ginnw2 / bitrix_smart_filter_ajax.js
Last active April 1, 2021 08:08 — forked from VasiliuKr/bitrix_smart_filter_ajax.js
catalog.smart.filter - ajax обновление списка без AXAJ_MODE
// В шаблоне bitrix:catalog.smart.filter редактируем script.js
//ищим функцию JCSmartFilter.prototype.postHandler и вписываем следующее
$.get(
BX.util.htmlspecialcharsback(result.FILTER_AJAX_URL),
function (data) {
history.pushState(null, null, result.FILTER_AJAX_URL);//подставляем адрес в адресную строку
$('.catalog-list').html($(data).find('.catalog-list').html());
}
);