From b2c92d3f4be40cb151dd9ea0f8f335928d42757c Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 31 Aug 2016 18:54:05 +0300 Subject: [PATCH] Fixes #12382: Changed `yii\widgets\MaskedInput` to use `jQuery` instead of `$` to prevent conflicts --- framework/CHANGELOG.md | 1 + framework/widgets/MaskedInput.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 124664b912..30e8f7b309 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -52,6 +52,7 @@ Yii Framework 2 Change Log - Bug #11347: Fixed `yii\widgets\Pjax::registerClientScript()` to pass custom `container` to the PJAX JS plugin (silverfire) - Bug #12293: Fixed MSSQL `Schema::resolveTableNames()` when using linked database tables (hAppywAy) - Enh: Method `yii\console\controllers\AssetController::getAssetManager()` automatically enables `yii\web\AssetManager::forceCopy` in case it is not explicitly specified (pana1990, klimov-paul) +- Enh #12382: Changed `yii\widgets\MaskedInput` to use `jQuery` instead of `$` to prevent conflicts (samdark) 2.0.9 July 11, 2016 diff --git a/framework/widgets/MaskedInput.php b/framework/widgets/MaskedInput.php index c162f20e14..02cc401453 100644 --- a/framework/widgets/MaskedInput.php +++ b/framework/widgets/MaskedInput.php @@ -184,7 +184,7 @@ class MaskedInput extends InputWidget $js .= ucfirst(self::PLUGIN_NAME) . '.extendAliases(' . Json::htmlEncode($this->aliases) . ');'; } $id = $this->options['id']; - $js .= '$("#' . $id . '").' . self::PLUGIN_NAME . '(' . $this->_hashVar . ');'; + $js .= 'jQuery("#' . $id . '").' . self::PLUGIN_NAME . '(' . $this->_hashVar . ');'; MaskedInputAsset::register($view); $view->registerJs($js); }