[Kimchi-devel] [PATCH] Bugfix: Template disk allocation changed back to default(10G)

Wen Wang wenwang at linux.vnet.ibm.com
Mon Jan 26 05:28:03 UTC 2015


Keep the changed value until save option has been chosen.

Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.template_edit_main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.template_edit_main.js b/ui/js/src/kimchi.template_edit_main.js
index 1149541..f809223 100644
--- a/ui/js/src/kimchi.template_edit_main.js
+++ b/ui/js/src/kimchi.template_edit_main.js
@@ -102,7 +102,7 @@ kimchi.template_edit_main = function() {
                     if (tempType === 'iscsi' || tempType === 'scsi') {
                         $('.template-storage-disk', selectedItem).attr('readonly', true).val(scsiCap);
                     } else {
-                        $('.template-storage-disk', selectedItem).attr('readonly', false).val('10');
+                        $('.template-storage-disk', selectedItem).attr('readonly', false);
                     }
                     $('.template-storage-name').val(tempStorageNameFull);
                 });
-- 
2.1.0




More information about the Kimchi-devel mailing list