mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 20:21:19 +08:00
Fixed handleAction() function in yii.js to handle attribute data-pjax=0 as disabled PJAX
Fixes #13118
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user