From 65c2ade8ed66b61967b08b36be918e1930dbd90d Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Fri, 2 Dec 2016 10:04:59 +0200 Subject: [PATCH] Fixed `handleAction()` function in `yii.js` to handle attribute `data-pjax=0` as disabled PJAX Fixes #13118 --- framework/CHANGELOG.md | 1 + framework/assets/yii.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 9030302d8a..632335a2d2 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -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) diff --git a/framework/assets/yii.js b/framework/assets/yii.js index e2db617a38..a73c296787 100644 --- a/framework/assets/yii.js +++ b/framework/assets/yii.js @@ -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 {