Fixed handleAction() function in yii.js to handle attribute data-pjax=0 as disabled PJAX

Fixes #13118
This commit is contained in:
SilverFire - Dmitry Naumenko
2016-12-02 10:04:59 +02:00
parent 1141fc81a7
commit 65c2ade8ed
2 changed files with 2 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ Yii Framework 2 Change Log
- Bug #13071: Help option for commands was not working in modules (arogachev, haimanman)
- Bug #13089: Fixed `yii\console\controllers\AssetController::adjustCssUrl()` breaks URL reference specification (`url(#id)`) (vitalyzhakov)
- Bug #7727: Fixed truncateHtml leaving extra tags (developeruz)
- Bug #13118: Fixed `handleAction()` function in `yii.js` to handle attribute `data-pjax=0` as disabled PJAX (silverfire)
- Enh #6809: Added `\yii\caching\Cache::$defaultDuration` property, allowing to set custom default cache duration (sdkiller)
- Enh #7333: Improved error message for `yii\di\Instance::ensure()` when a component does not exist (cebe)
- Enh #7420: Attributes for prompt generated with `renderSelectOptions` of `\yii\helpers\Html` helper (arogachev)

View File

@@ -164,7 +164,7 @@ window.yii = (function ($) {
pjaxContainer,
pjaxOptions = {};
if (pjax !== undefined && $.support.pjax) {
if (pjax !== undefined && pjax !== 0 && $.support.pjax) {
if ($e.data('pjax-container')) {
pjaxContainer = $e.data('pjax-container');
} else {