Commit 50b08148702c3458a697cb4c064a4a1cb169e532
Committed by
Parley
1 parent
4f9041a1
Exists in
master
and in
5 other branches
Remove the institution id from user registration on remove instituion button
(more_inst_for_users) Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
public/mpog-institution-validations.js
| ... | ... | @@ -185,7 +185,9 @@ |
| 185 | 185 | |
| 186 | 186 | function remove_institution(evt) { |
| 187 | 187 | evt.preventDefault(); |
| 188 | + var code = jQuery(this).parent().attr("data-institution"); | |
| 188 | 189 | |
| 190 | + jQuery(".user_institutions[value="+code+"]").remove(); | |
| 189 | 191 | jQuery(this).parent().remove(); |
| 190 | 192 | } |
| 191 | 193 | ... | ... |