Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
28e2e32e
Commit
28e2e32e
authored
Jan 27, 2014
by
Keith Downie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where the first profile would get reselected when the create button was clicked
parent
4be204e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
www/aptui/js/main.js
www/aptui/js/main.js
+1
-1
www/aptui/quickvm.php
www/aptui/quickvm.php
+18
-8
No files found.
www/aptui/js/main.js
View file @
28e2e32e
...
...
@@ -87,7 +87,7 @@ function ($, sup)
function
initIndex
()
{
sup
.
UpdateProfileSelection
(
$
(
'
#profile_name li
:eq(0)
'
));
sup
.
UpdateProfileSelection
(
$
(
'
#profile_name li
[value =
'
+
window
.
PROFILE
+
'
]
'
));
$
(
'
#quickvm_topomodal
'
).
on
(
'
hidden.bs.modal
'
,
function
()
{
sup
.
ShowProfileList
(
$
(
'
.current
'
))
});
...
...
www/aptui/quickvm.php
View file @
28e2e32e
...
...
@@ -272,7 +272,17 @@ function SPITFORM($username, $email, $sshkey, $profile, $newuser, $errors)
</div>
</div>
</div>
\n
"
;
echo
"<script type='text/javascript'>
\n
"
;
if
(
isset
(
$profile
)
&&
$profile
!=
""
)
{
echo
"window.PROFILE = '
$profile_value
';
\n
"
;
}
else
{
echo
"window.PROFILE = '
$profile_default
';
\n
"
;
}
echo
"</script>
\n
"
;
echo
"<script type='text/javascript'>
\n
"
;
echo
"window.APT_OPTIONS = {\n"
;
echo
" pageType: 'index',
\n
"
;
if
(
$newuser
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment