'+
'
'+tr("Raw data to be added directly to the .vmx file.")+'.
'+
@@ -3774,6 +3768,16 @@ function setupCreateTemplateDialog(){
$("
"+tr("Other")+"").appendTo($("dl#template_create_tabs"));
$(html_tab_content).appendTo($("ul#template_create_tabs_content"));
+ $('#raw_type').change(function(){
+ var choice_str = $(this).val();
+ switch(choice_str) {
+ case 'vmware':
+ $("#data_vmx_div", dialog).show();
+ break;
+ default:
+ $("#data_vmx_div", dialog).hide();
+ }
+ });
}
@@ -4700,9 +4704,9 @@ function fillTemplatePopUp(request, response){
return $('
').html(value).text();
}
- $('#raw_type').val(htmlDecode(raw['TYPE']));
- $('#raw_data').val(htmlDecode(raw['DATA']));
- $('#raw_data_vmx').val(htmlDecode(raw['DATA_VMX']));
+ $('#raw_type', raw_section).val(htmlDecode(raw['TYPE']));
+ $('#raw_data', raw_section).val(htmlDecode(raw['DATA']));
+ $('#raw_data_vmx', raw_section).val(htmlDecode(raw['DATA_VMX']));
}
popUpUpdateTemplateDialog();