mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fixed typo in output client scripts [skip ci]
This commit is contained in:

committed by
Alexander Makarov

parent
6330a2b779
commit
b7a96a8eb5
@ -187,7 +187,7 @@ $message = \yii\helpers\Json::htmlEncode(
|
|||||||
\Yii::t('app', 'Button clicked!')
|
\Yii::t('app', 'Button clicked!')
|
||||||
);
|
);
|
||||||
$this->registerJs(<<<JS
|
$this->registerJs(<<<JS
|
||||||
$('#myButton').on('click', function() { alert( $message ); });",
|
$('#myButton').on('click', function() { alert( $message ); });
|
||||||
JS
|
JS
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -183,7 +183,7 @@ $message = \yii\helpers\Json::htmlEncode(
|
|||||||
\Yii::t('app', 'Button clicked!')
|
\Yii::t('app', 'Button clicked!')
|
||||||
);
|
);
|
||||||
$this->registerJs(<<<JS
|
$this->registerJs(<<<JS
|
||||||
$('#myButton').on('click', function() { alert( $message ); });",
|
$('#myButton').on('click', function() { alert( $message ); });
|
||||||
JS
|
JS
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user