Skip to content

Commit d64ac2f

Browse files
committed
Merge branch 'issue_335' into develop
2 parents 054ae30 + 9adba11 commit d64ac2f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

web/views/scripts/auth/signup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<input type="hidden"
8787
name="schoolId"
8888
class="form-control"
89+
data-formatnomatches="<?=\yii::t('app', 'No matches found. Please, try to search by a part of your school\'s name, not by the full name.<br><br>If you not succeeded, please, contact your coach or coordinator with request to add your school to the list.')?>"
8990
data-placeholder="<?=\yii::t('app', 'Your school')?>" />
9091
</div>
9192
<div class="form-group">

web/www/js/app/auth/signup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ function appAuthSignup() {
9898
*/
9999
$('.form-group .form-control[name=schoolId]').select2({
100100
minimumInputLength: 2,
101+
formatNoMatches: function () {
102+
return $(this.element).data('formatnomatches');
103+
},
101104
query: function (query) {
102105
var data = {
103106
results: []

0 commit comments

Comments
 (0)