From 15ae2c9fa466e83cda1e7f6eff14ed1a73a07731 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 13 Sep 2013 16:32:15 +0200 Subject: [PATCH] Initial value for VM Template memory field --- src/sunstone/public/js/plugins/templates-tab.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index 9b6c9778e4..e821ee3d76 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -809,7 +809,8 @@ function setup_capacity_tab_content(capacity_section) { connect: "lower", range: [0,409600], step: 12800, - start: 1, + start: 51200, + value: 512, slide: memory_slider_change, }); @@ -826,9 +827,6 @@ function setup_capacity_tab_content(capacity_section) { memory_input.val( Math.floor(final_memory_input.val()) ); }) - // init::start is ignored for some reason - memory_slider.val(0); - memory_unit.change(function() { var memory_unit_val = $('#memory_unit :selected', capacity_section).val(); @@ -844,6 +842,7 @@ function setup_capacity_tab_content(capacity_section) { range: [0,1600], start: 1, step: 50, + value: 51200, slide: memory_slider_change, }); @@ -859,6 +858,7 @@ function setup_capacity_tab_content(capacity_section) { connect: "lower", range: [0,409600], start: 1, + value: 51200, step: 12800, slide: memory_slider_change, }); @@ -873,6 +873,9 @@ function setup_capacity_tab_content(capacity_section) { } }); + // init::start is ignored for some reason + memory_input.val(512); + // Define the vcpu slider