Commit 37c3d154 authored by Keith Downie's avatar Keith Downie
Browse files

Fixed an error with the experient creation (selecting profile form)

parent a3083d60
...@@ -143,6 +143,7 @@ function ShowTopo(uuid) ...@@ -143,6 +143,7 @@ function ShowTopo(uuid)
function UpdateProfileSelection(selectedElement) function UpdateProfileSelection(selectedElement)
{ {
var profile = $(selectedElement).attr('value'); var profile = $(selectedElement).attr('value');
$('#selected_profile').attr('value', profile);
$('#selected_profile_text').html("" + profile); $('#selected_profile_text').html("" + profile);
if (!$(selectedElement).hasClass('current')) if (!$(selectedElement).hasClass('current'))
......
...@@ -170,11 +170,11 @@ function SPITFORM($username, $email, $sshkey, $profile, $newuser, $errors) ...@@ -170,11 +170,11 @@ function SPITFORM($username, $email, $sshkey, $profile, $newuser, $errors)
<div id='profile_well' class='form-group well well-md'> <div id='profile_well' class='form-group well well-md'>
<span id='selected_profile_text' class='pull-left'> <span id='selected_profile_text' class='pull-left'>
</span> </span>
<input id='selected_profile' type='hidden' name='profile'/>
<button id='profile' class='btn btn-primary btn-xs pull-right' <button id='profile' class='btn btn-primary btn-xs pull-right'
type='button' name='profile'> type='button' name='profile_button'>
Select a Profile Select a Profile
</button>\n"; </button>\n";
echo " <label echo " <label
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment