1
0
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:
Jaime Melis 2011-02-24 14:02:00 +01:00
parent c8e87b3ee9
commit 1fdcdd9cd0
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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>\