mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fixed setup of 'definitions' and 'aliases' at yii\widgets\MaskedInput
This commit is contained in:
@ -5,6 +5,7 @@ Yii Framework 2 Change Log
|
||||
-----------------------
|
||||
|
||||
- Bug #9851: Fixed partial commit / rollback in nested transactions (sammousa)
|
||||
- Bug #10850: Fixed unable to use 'definitions' and 'aliases' at `yii\widgets\MaskedInput` (rahimov, klimov-paul)
|
||||
- Bug #10946: Fixed parameters binding to the SQL query in `yii\db\mysqlSchema::findConstraints()` (silverfire)
|
||||
- Enh #5469: Add mimetype validation by mask in FileValidator (kirsenn, samdark, silverfire)
|
||||
- Enh #10487: `yii\helpers\BaseArrayHelper::index()` got a third parameter `$groupBy` to group the input array by the key in one or more dimensions (quantum13, silverfire, samdark)
|
||||
|
@ -178,10 +178,10 @@ class MaskedInput extends InputWidget
|
||||
}
|
||||
$this->hashPluginOptions($view);
|
||||
if (is_array($this->definitions) && !empty($this->definitions)) {
|
||||
$js .= '$.extend($.' . self::PLUGIN_NAME . '.defaults.definitions, ' . Json::htmlEncode($this->definitions) . ');';
|
||||
$js .= ucfirst(self::PLUGIN_NAME) . '.extendDefinitions(' . Json::htmlEncode($this->definitions) . ');';
|
||||
}
|
||||
if (is_array($this->aliases) && !empty($this->aliases)) {
|
||||
$js .= '$.extend($.' . self::PLUGIN_NAME . '.defaults.aliases, ' . Json::htmlEncode($this->aliases) . ');';
|
||||
$js .= ucfirst(self::PLUGIN_NAME) . '.extendAliases(' . Json::htmlEncode($this->aliases) . ');';
|
||||
}
|
||||
$id = $this->options['id'];
|
||||
$js .= '$("#' . $id . '").' . self::PLUGIN_NAME . '(' . $this->_hashVar . ');';
|
||||
|
Reference in New Issue
Block a user