Skip to content

Instantly share code, notes, and snippets.

@Isa3v
Created November 17, 2020 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Isa3v/f291940a919b2a5a462820b73e68b188 to your computer and use it in GitHub Desktop.
Save Isa3v/f291940a919b2a5a462820b73e68b188 to your computer and use it in GitHub Desktop.
Умный фильтр битрикс ajax обновление без параметра "AJAX_MODE=Y"
// В script.js компонента bitrix:catalog.smart.filter
// Вместо
//if (modef.style.display === 'none')
//{
// modef.style.display = 'inline-block';
//}
// Пишем. Это ajax запрос к сформированной ссылке. А дальше вытягиваем, что нужно
$.get(
BX.util.htmlspecialcharsback(result.FILTER_AJAX_URL),
function (data) {
$('.catalog-list').html($(data).find('.catalog-list').html());
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment