mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 17:43:40 +00:00
Merge branch 'master-redesign' of github.com:sharelatex/web-sharelatex into master-redesign
This commit is contained in:
commit
661cfcb2c1
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ define [
|
|||
if inputVal?.indexOf("(") != -1 and inputVal?.indexOf(")") != -1
|
||||
$scope.sendUpdate()
|
||||
|
||||
query = $scope.userInfoForm.institution
|
||||
if query?.length <= 3
|
||||
return #saves us algolia searches, need ~4 chars to get uni anyway
|
||||
|
||||
Institutions.search $scope.userInfoForm.institution, (err, response)->
|
||||
$scope.institutions = _.map response.hits, (institution)->
|
||||
"#{institution.name} (#{institution.domain})"
|
||||
|
|
Loading…
Reference in a new issue