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

Bug #2290: Clear hidden pane before attaching imge to VM disk

This commit is contained in:
Tino Vazquez 2013-09-11 18:47:50 +02:00
parent 5767c4b7f6
commit 5528686aa6

View File

@ -2215,6 +2215,21 @@ function setupAttachDiskDialog(){
var vm_id = $('#vm_id', this).text();
var data = {};
if($('input[type=radio]:checked', dialog).val()=="image")
{
// Clear the volatile fields
$('input#FORMAT', dialog).val("");
$('input#SIZE_TMP', dialog).val("");
}
else
{
$('input#IMAGE_ID', dialog).val("");
$('input#IMAGE', dialog).val("");
$('input#IMAGE_UID', dialog).val("");
$('input#IMAGE_UNAME',dialog).val("");
}
addSectionJSON(data, this);
var obj = {DISK: data}