Browse Source

Correctly invoke the function to add unknown universities.

Paulo Reis 8 years ago
parent
commit
920c24cacb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/web/app/views/user/settings/user-affiliations.pug

+ 2 - 1
services/web/app/views/user/settings/user-affiliations.pug

@@ -2,6 +2,7 @@ form.row(
 	ng-controller="UserAffiliationsController"
 	ng-controller="UserAffiliationsController"
 	name="affiliationsForm"
 	name="affiliationsForm"
 )
 )
+	pre(style="position: fixed; width: 200px; left: 0;") {{ newAffiliation | json }}
 	.col-md-12
 	.col-md-12
 		h3 #{translate("emails_and_affiliations_title")}
 		h3 #{translate("emails_and_affiliations_title")}
 		p.small #{translate("emails_and_affiliations_explanation")}
 		p.small #{translate("emails_and_affiliations_explanation")}
@@ -192,7 +193,7 @@ script(type="text/ng-template", id="affiliationFormTpl")
 		ui-select(
 		ui-select(
 			ng-model="$ctrl.affiliationData.university"
 			ng-model="$ctrl.affiliationData.university"
 			ng-disabled="!$ctrl.affiliationData.country"
 			ng-disabled="!$ctrl.affiliationData.country"
-			tagging="$ctrladdUniversityToSelection"
+			tagging="$ctrl.addUniversityToSelection"
 			tagging-label="false"
 			tagging-label="false"
 		)
 		)
 			ui-select-match(
 			ui-select-match(