1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

[Sunstone] Add memory default in template creation

This commit is contained in:
Tino Vazquez 2013-09-19 12:35:00 +02:00
parent 7c36d1f873
commit e1caa587b2

View File

@ -3955,12 +3955,13 @@ function setupCreateTemplateDialog(){
//
// CAPACITY
//
// var scope = section_capacity;
//
// if (!mandatory_filter(scope)){
// notifyError(tr("There are mandatory fields missing in the capacity section"));
// return false;
// };
if (!$('input#MEMORY',$('li#capacityTab',dialog)).val())
{
// Put default memory value
$('input#MEMORY',$('li#capacityTab',dialog)).val("512")
}
addSectionJSON(vm_json,$('li#capacityTab',dialog));
//
// OS