From 155a4b7cb6e0acf4f38c9ae96bc49a4982dfedab Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 16 Sep 2017 15:35:31 +0530 Subject: [PATCH] Added translation and fa-times icon --- hosting/static/hosting/js/virtual_machine_detail.js | 8 +++++--- hosting/templates/hosting/order_detail.html | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) 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 @@