Commit ce74d490 by Kálmán Viktor

Merge branch 'feature-extra-buttons' into 'master'

Feature Extra Buttons
parents 2fc3ff12 edbd31ad
...@@ -4,11 +4,15 @@ $(function() { ...@@ -4,11 +4,15 @@ $(function() {
/* vm migrate */ /* vm migrate */
$('.vm-migrate').click(function(e) { $('.vm-migrate').click(function(e) {
var icon = $(this).children("i");
var vm = $(this).data("vm-pk"); var vm = $(this).data("vm-pk");
icon.removeClass("icon-truck").addClass("icon-spinner icon-spin");
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/dashboard/vm/' + vm + '/migrate/', url: '/dashboard/vm/' + vm + '/migrate/',
success: function(data) { success: function(data) {
icon.addClass("icon-truck").removeClass("icon-spinner icon-spin");
$('body').append(data); $('body').append(data);
$('#create-modal').modal('show'); $('#create-modal').modal('show');
$('#create-modal').on('hidden.bs.modal', function() { $('#create-modal').on('hidden.bs.modal', function() {
......
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