Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ASM
edulab-frontend
Commits
39bede71
Commit
39bede71
authored
Jul 05, 2017
by
Andreas Åkre Solberg
Browse files
Require all fields to be filled out when creating new vms
parent
17b7888f
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/createmachine.js
View file @
39bede71
...
...
@@ -142,6 +142,10 @@ var submitForm = function() {
data
.
image_id
=
$
(
"
#select-images2
"
).
val
();
data
.
vm_name
=
randomName
();
if
(
!
data
.
hw_profile_id
||
!
data
.
image_id
)
{
return
alert
(
'
Fyll ut alle påkrevde felter før du oppretter en ny maskin.
'
)
}
$
(
"
#debug
"
).
empty
().
append
(
JSON
.
stringify
(
data
,
undefined
,
2
));
...
...
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