Commit 37e0907d9c212997b7fbec62b6796f8aee972797
1 parent
255c98ce
- select2
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
frontend/views/support/search.php
@@ -32,6 +32,7 @@ | @@ -32,6 +32,7 @@ | ||
32 | 'options' => [ | 32 | 'options' => [ |
33 | 'placeholder' => \Yii::t('app', 'Почніть вводити назву книги'), | 33 | 'placeholder' => \Yii::t('app', 'Почніть вводити назву книги'), |
34 | 'multiple' => false, | 34 | 'multiple' => false, |
35 | + | ||
35 | 36 | ||
36 | ], | 37 | ], |
37 | 'toggleAllSettings' => [ | 38 | 'toggleAllSettings' => [ |
@@ -41,6 +42,9 @@ | @@ -41,6 +42,9 @@ | ||
41 | 'allowClear' => true, | 42 | 'allowClear' => true, |
42 | 'minimumInputLength' => 3, | 43 | 'minimumInputLength' => 3, |
43 | 'language' => [ | 44 | 'language' => [ |
45 | + 'inputTooShort' => new JsExpression( | ||
46 | + "function () { return ''; }" | ||
47 | + ), | ||
44 | 'errorLoading' => new JsExpression( | 48 | 'errorLoading' => new JsExpression( |
45 | "function () { return 'Зачекайте...'; }" | 49 | "function () { return 'Зачекайте...'; }" |
46 | ), | 50 | ), |