const CourseWizard = { /** * Adds a new participating institute to the course. * @param id Stud.IP institute ID * @param name Full name * @param inputName name of the for input to generate * @param elClass desired CSS class name * @param elId ID of the target container to append to * @param otherInput name of other inputs to check * * (e.g. deputies if adding a lecturer) */ addParticipatingInst: function(id, name) { // Check if already set. if ($('input[name="participating[' + id + ']"]').length == 0) { var wrapper = $('