From 1750cee0e50149d21cb4c00db59f9babbe92cf19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Fri, 14 Mar 2014 15:53:50 +0100 Subject: [PATCH] Feature #2746: Minor fix in template update --- src/sunstone/public/js/plugins/templates-tab.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index 9d3ebb81a6..09410e43d7 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -3959,7 +3959,7 @@ function fillTemplatePopUp(template, dialog){ else { $('input#'+str_disk_tab_id+'radioVolatile', disk_section).click(); if (disk.SIZE) { - $('#SIZE_TMP', disk_section).val(Math.round( disk.SIZE / 1024 )) + $('#SIZE_TMP', disk_section).val(disk.SIZE / 1024) } } @@ -4459,10 +4459,10 @@ function fillTemplatePopUp(template, dialog){ var packing_regexp = /^-FREE_MB$/; if (striping_regexp.test(ds_rank)) { - $('input[name="ds_rank_select"]#stripingRadio', req_section).click() + $('input[name="ds_rank_select"]#stripingDSRadio', req_section).click() } else if (packing_regexp.test(ds_rank)) { - $('input[name="ds_rank_select"]#packingRadio', req_section).click() + $('input[name="ds_rank_select"]#packingDSRadio', req_section).click() } $('input#SCHED_DS_RANK', req_section).val(ds_rank);