Commit 29172f7e by Kálmán Viktor

Merge branch 'issue-467' into 'master'

Add loading icon and disable start button after click

closes #467

See merge request !390
parents ab26a51e 7418aa26
Pipeline #228 passed with stage
in 0 seconds
...@@ -37,6 +37,7 @@ function vmCreateLoaded() { ...@@ -37,6 +37,7 @@ function vmCreateLoaded() {
/* start vm button clicks */ /* start vm button clicks */
$('.vm-create-start').click(function() { $('.vm-create-start').click(function() {
$(this).prop("disabled", true).find("i").prop("class", "fa fa-spinner fa-spin");
template = $(this).data("template-pk"); template = $(this).data("template-pk");
$.ajax({ $.ajax({
url: '/dashboard/vm/create/', url: '/dashboard/vm/create/',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment