-
-
Save Ginnw2/b9816b72889d63b8bcd0bf8142729078 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 и вписываем следующее | |
$.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()); | |
} | |
); | |
// .catalog-list - селектор который необходимо обновить. Естественно jQuery должен быть подключен. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment