From 6e397dfe8929b49dbfd577f34e7a7b75cfc2617d Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Mon, 2 Oct 2017 12:20:24 +0200 Subject: [PATCH] Float cost in disk (update template) (#512) (cherry picked from commit 1cc73b25d5174e3d826fef411a064d5fca55d4d7) --- .../templates-tab/form-panels/create/wizard-tabs/general.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js index 1dd9a5f155..8ff5dd47b1 100644 --- a/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js +++ b/src/sunstone/public/app/tabs/templates-tab/form-panels/create/wizard-tabs/general.js @@ -140,7 +140,7 @@ define(function(require) { }); context.on("change", "#DISK_COST", function() { - var disk = parseInt(document.getElementById('DISK_COST').value); + var disk = parseFloat(document.getElementById('DISK_COST').value); that.templateDISKS = JSON.parse(localStorage.getItem("disksJSON")); if (that.templateDISKS){ var totalGB = 0;