-
-
Save clientlab-dev/40859094a7b3837c64a82ccd4daf13bd to your computer and use it in GitHub Desktop.
catalog.smart.filter - ajax обновление списка без AXAJ_MODE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// В шаблоне 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