Merge branch 'master-redesign' of github.com:sharelatex/web-sharelatex into master-redesign

This commit is contained in:
James Allen 2014-07-17 11:43:59 +01:00
commit 661cfcb2c1

View file

@ -49,6 +49,10 @@ define [
# listen for blur events on institution field to send the post
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)->