Skip to content
Snippets Groups Projects
Commit cb12189f authored by Brett Bieber's avatar Brett Bieber
Browse files

Handle role field by replacing the input with a select box

parent d5533313
Branches
No related tags found
No related merge requests found
......@@ -484,6 +484,20 @@ if ($vars['title'] == "Edit profile") {
this.innerHTML = "Birthday";
}
});
var unlrole = $('form input[name=form_data_profile_role]').val();
$('form input[name=form_data_profile_role]').replaceWith('<select name="form_data_profile_role" class="input-pulldown">'+
'<option value="prospect">Prospective Student</option>'+
'<option value="student">Current Student</option>'+
'<option value="parent">Parent of a Prospective Student and/or Current Student</option>'+
'<option value="alum">Alum</option>'+
'<option value="facstaff">Faculty/Staff</option>'+
'<option value="resident">Nebraska Resident</option>'+
'<option value="friend">Friend of the University</option>'+
'</select>');
$('form select[name=form_data_profile_role] option[value='+unlrole+']').attr('selected','selected');
$("#formloading").remove();
$("#maincontent form.cool").show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment