Created
November 17, 2020 09:43
-
-
Save Isa3v/f291940a919b2a5a462820b73e68b188 to your computer and use it in GitHub Desktop.
Умный фильтр битрикс ajax обновление без параметра "AJAX_MODE=Y"
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
// В 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