mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Fix to use template machine type rather than default to windows default i440
This commit is contained in:
@@ -93,8 +93,12 @@ if (isset($_GET['uuid'])) {
|
||||
}
|
||||
$arrLoad['form'] = $arrAllTemplates[$strSelectedTemplate]['form'];
|
||||
}
|
||||
$usertemplate = false;
|
||||
$strSelectedTemplateUT = $strSelectedTemplate;
|
||||
if (strpos($strSelectedTemplate,"User-") !== false) $strSelectedTemplateUT = str_replace("User-","",$strSelectedTemplateUT);
|
||||
if (strpos($strSelectedTemplate,"User-") !== false) {
|
||||
$strSelectedTemplateUT = str_replace("User-","",$strSelectedTemplateUT);
|
||||
$usertemplate = true;
|
||||
}
|
||||
?>
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css')?>">
|
||||
<link type="text/css" rel="stylesheet" href="<?autov('/webGui/styles/jquery.filetree.css')?>">
|
||||
|
||||
@@ -2550,7 +2550,7 @@ $(function() {
|
||||
$('#vmform #domain_clock').val('localtime');
|
||||
$("#vmform #domain_machine option").each(function(){
|
||||
if ($(this).val().indexOf('i440fx') != -1) {
|
||||
$('#vmform #domain_machine').val($(this).val()).change();
|
||||
if (!<?=$usertemplate?>) $('#vmform #domain_machine').val($(this).val()).change();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user