Bug #4118: Fix cost for services

(cherry picked from commit bdc3a4978e)
This commit is contained in:
Carlos Martín committed 2015-11-02 13:02:13 +01:00
1 parent b5364b3a69
commit 36de6b8078
1 file changed
+2 -2
@@ -247,7 +247,7 @@ define(function(require) {
var capacity = template_json.VMTEMPLATE.TEMPLATE;
var cost = 0;
if (capacity.CPU_COST || capacity.MEMORY_COST && Config.isFeatureEnabled("showback")) {
$(".provision_create_service_cost_div").show();
$(".provision_create_service_cost_div", context).show();
if (capacity.CPU && capacity.CPU_COST) {
cost += capacity.CPU * capacity.CPU_COST
@@ -263,7 +263,7 @@ define(function(require) {
var cost_value = cost*parseInt(role_template.cardinality);
$(".cost_value", context).html(cost_value.toFixed(2));
} else {
$(".provision_create_service_cost_div").hide();
$(".provision_create_service_cost_div", context).hide();
}
if (max_vms > min_vms) {