From a301d7154a1c34508bbf3b9252ea52e7cd90c439 Mon Sep 17 00:00:00 2001 From: servocoder Date: Fri, 27 Nov 2015 21:08:53 +0200 Subject: [PATCH] Enh #10267: `yii.js` - added original event passing to `pjaxOptions` for links with `data-method` and `data-pjax` --- framework/CHANGELOG.md | 1 + framework/assets/yii.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 69920092a5..ea72e2a7e5 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -71,6 +71,7 @@ Yii Framework 2 Change Log - Enh #10170: `Yii::powered()` now uses `Yii::t()` (SamMousa) - Enh #10218: Support for selecting multiple filter values with the same name was added to `yii.gridView.js` (omnilight, silverfire) - Enh #10264: Generation of HTML tags in Yii's JavaScript now uses jQuery style (silverfire) +- Enh #10267: `yii.js` - added original event passing to `pjaxOptions` for links with `data-method` and `data-pjax` (servocoder, silverfire) - Enh: Added last resort measure for `FileHelper::removeDirectory()` fail to unlink symlinks under Windows (samdark) - Chg #9369: `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured (creocoder) - Chg #9411: `DetailView` now automatically sets container tag ID in case it's not specified (samdark) diff --git a/framework/assets/yii.js b/framework/assets/yii.js index a2ed943013..c9f08f7a3b 100644 --- a/framework/assets/yii.js +++ b/framework/assets/yii.js @@ -177,7 +177,8 @@ yii = (function ($) { pushRedirect: pjaxPushRedirect, replaceRedirect: pjaxReplaceRedirect, pjaxSkipOuterContainers: pjaxSkipOuterContainers, - timeout: pjaxTimeout + timeout: pjaxTimeout, + originalEvent: event } }