Код: Выделить всё
{{ pjax_begin({'enablePushState' : false, 'clientOptions' : {'push' : false}, 'options' : {'id' : 'update-balance-pjax'}}) }}
<span>{{ balance }}</span>
{{ Html.a(' ', ['site/update-balance'], {'id' : 'update-balance', title: 'Обновить'})|raw }}
{{ pjax_end() }}
генерируемый скрипт вроде верный:
Код: Выделить всё
<script>jQuery(function ($) {
jQuery(document).pjax("#p0 a", {"push":true,"replace":false,"timeout":1000,"scrollTo":false,"container":"#p0"});
jQuery(document).on("submit", "#p0 form[data-pjax]", function (event) {jQuery.pjax.submit(event, {"push":true,"replace":false,"timeout":1000,"scrollTo":false,"container":"#p0"});});
jQuery(document).pjax("#update-balance-pjax a", {"push":false,"replace":false,"timeout":1000,"scrollTo":false,"container":"#update-balance-pjax"});
jQuery(document).on("submit", "#update-balance-pjax form[data-pjax]", function (event) {jQuery.pjax.submit(event, {"push":false,"replace":false,"timeout":1000,"scrollTo":false,"container":"#update-balance-pjax"});});
});</script>