mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Feature #495: Fixed bug in manual created VM templates. There were two DOM objects with the same ID.
This commit is contained in:
parent
c8e87b3ee9
commit
1fdcdd9cd0
@ -1901,10 +1901,10 @@ function createVMachineDialog(){
|
||||
});
|
||||
|
||||
$('button#create_vm_form_manual').click(function(){
|
||||
template = $('#vm_template').val();
|
||||
template = $('#textarea_vm_template').val();
|
||||
|
||||
//wrap it in the "vm" object
|
||||
template = {vm: {vm_raw: template}};
|
||||
template = {"vm": {"vm_raw": template}};
|
||||
|
||||
OpenNebula.VM.create({data: template,
|
||||
success: addVMachineElement,
|
||||
|
@ -757,7 +757,7 @@ var create_vm_tmpl =
|
||||
<form>\
|
||||
<h3 style="margin-bottom:10px;">Write the Virtual Machine template here</h3>\
|
||||
<fieldset style="border-top:none;">\
|
||||
<textarea id="vm_template" style="width:100%; height:15em;"></textarea>\
|
||||
<textarea id="textarea_vm_template" style="width:100%; height:15em;"></textarea>\
|
||||
<div class="clear"></div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
|
Loading…
x
Reference in New Issue
Block a user