Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save clientlab-dev/40859094a7b3837c64a82ccd4daf13bd to your computer and use it in GitHub Desktop.
Save clientlab-dev/40859094a7b3837c64a82ccd4daf13bd to your computer and use it in GitHub Desktop.
catalog.smart.filter - ajax обновление списка без AXAJ_MODE
// В шаблоне bitrix:catalog.smart.filter редактируем script.js - ищим функцию JCSmartFilter.prototype.postHandler и редактируем следующее
//if (modef.style.display === 'none')
//{
// modef.style.display = 'inline-block';
//}
$.get(
result.FILTER_AJAX_URL,
function (data) {
$('.catalog-list').html($(data).find('.catalog-list').html());
}
);
// .catalog-list - селектор который необходимо обновить. Естественно jQuery должен быть подключен.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment