mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 14:50:56 +08:00
Fixes #12382: Changed yii\widgets\MaskedInput
to use jQuery
instead of $
to prevent conflicts
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user