diff --git a/hosting/static/hosting/js/virtual_machine_detail.js b/hosting/static/hosting/js/virtual_machine_detail.js index 7ea408ae..b6202e97 100644 --- a/hosting/static/hosting/js/virtual_machine_detail.js +++ b/hosting/static/hosting/js/virtual_machine_detail.js @@ -20,9 +20,11 @@ $(document).ready(function () { }, error: function (xmlhttprequest, textstatus, message) { fa_icon = $('.modal-icon > .fa'); - fa_icon.attr('class', 'fa fa-error'); + fa_icon.attr('class', 'fa fa-times'); $('.modal-header > .close').attr('class', 'close'); - $('#createvm-modal-title').text(create_vm_error_message); + if (typeof(create_vm_error_message) !== 'undefined') { + $('#createvm-modal-title').text(create_vm_error_message); + } $('#btn-create-vm').prop('disabled', false); } }); @@ -43,4 +45,4 @@ $(document).ready(function () { $('html,body').scrollTop(scrollmem); }); -}); \ No newline at end of file +}); diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 2a3c32b7..85540c73 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -202,7 +202,9 @@