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:
parent
7c36d1f873
commit
e1caa587b2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user