register template kvm context ui fix (#2757)

On the 'Register Template From URL' screen, when a user selects the KVM option from the Hypervisor dropdown:
1) It incorrectly displays the 'Original XS Version is 6.1' checkbox. This checkbox should be hidden in the KVM context.
2) The 'Root Disk Controller' dropdown should display the default option of 'osdefault' instead of a blank default option.
This commit is contained in:
ernjvr 2018-07-20 09:16:23 +02:00 committed by dahn
parent 38d0274eb4
commit 781d6bc051

View File

@ -267,7 +267,7 @@
$form.find('.form-item[rel=keyboardType]').hide();
$form.find('.form-item[rel=xenserverToolsVersion61plus]').hide();
$form.find('.form-item[rel=rootDiskControllerTypeKVM]').css('display', 'inline-block');
$form.find('.form-item[rel=xenserverToolsVersion61plus]').css('display', 'inline-block');
$('#label_root_disk_controller').prop('selectedIndex', 2);
if (isAdmin()) {
$form.find('.form-item[rel=directdownload]').css('display', 'inline-block');
}