Skip to content
Snippets Groups Projects
Commit af033b56 authored by Seth Meranda's avatar Seth Meranda
Browse files

JS change to accomodate the database stored labels.

parent 5aa3817b
No related branches found
No related tags found
No related merge requests found
......@@ -509,26 +509,26 @@ if ($vars['title'] == "Edit profile") {
'</select>');
switch (unlrole) {
case "prospect":
case "prospective student":
$("form select[name=form_data_profile_role] option[value='Prospective Student']").attr('selected','selected');
break;
case "student" :
case "current student" :
$("form select[name=form_data_profile_role] option[value='Current Student']").attr('selected','selected');
break;
case "parent" :
case "parent of a student" :
$("form select[name=form_data_profile_role] option[value='Parent of a Student']").attr('selected','selected');
break;
case "alumnus" :
case "alum":
$("form select[name=form_data_profile_role] option[value='Alumnus']").attr('selected','selected');
break;
case "facstaff" :
case "faculty/staff" :
$("form select[name=form_data_profile_role] option[value='Faculty/Staff']").attr('selected','selected');
break;
case "resident" :
case "nebraska resident" :
$("form select[name=form_data_profile_role] option[value='Nebraska Resident']").attr('selected','selected');
break;
case "friend" :
case "friend of the university" :
$("form select[name=form_data_profile_role] option[value='Friend of the University']").attr('selected','selected');
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment