Fixes #12382: Changed yii\widgets\MaskedInput to use jQuery instead of $ to prevent conflicts

This commit is contained in:
Alexander Makarov
2016-08-31 18:54:05 +03:00
parent 3568566e0f
commit b2c92d3f4b
2 changed files with 2 additions and 1 deletions

View File

@ -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);
}