Skip to content

Commit

Permalink
Fixing the name of the package in the example (#3)
Browse files Browse the repository at this point in the history
thanks for the changes.
  • Loading branch information
Mihai-P authored and Faryshta committed Jan 13, 2017
1 parent 432f4ed commit 8b7a191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ to the `require` section of your `composer.json` file.
## Usage

```php
use farystha\widgets\JqueryTagsInput;
use faryshta\widgets\JqueryTagsInput;

// with ActiveForm
echo $form->field($model, 'attribute')->widget(JqueryTagsInput::className() [
echo $form->field($model, 'attribute')->widget(JqueryTagsInput::className(), [
// extra configuration
]);

Expand Down
4 changes: 2 additions & 2 deletions widgets/JqueryTagsInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ protected function registerScript()
{
$view = $this->getView();
if (isset($this->clientOptions['autocomplete_url'])) {
if (class_exists('yii\jui\AutoComplete')) {
\yii\jui\AutoComplete::register($view);
if (class_exists('yii\jui\JuiAsset')) {
\yii\jui\JuiAsset::register($view);
} else {
throw new InvalidConfigException(
'To use autocomplete functionality you need to install the '
Expand Down

0 comments on commit 8b7a191

Please # to comment.