VM fixes after PR

This commit is contained in:
bergware
2018-08-22 13:40:52 +02:00
parent d309568211
commit 2b6fa6d300
4 changed files with 11 additions and 6 deletions
@@ -1424,14 +1424,14 @@ $(function() {
$panel.find('input').prop('disabled', false); // enable all inputs otherwise they wont post
<?if (!$boolRunning):?>
<?if (!$boolRunning && !$boolNew):?>
// signal devices to be added or removed
$button.closest('form').find('input[name="usb[]"],input[name="pci[]"]').each(function(){
if (!$(this).prop('checked')) $(this).prop('checked',true).val($(this).val()+'#remove');
});
<?endif?>
var postdata = $button.closest('form').find('input,select').serialize().replace(/'/g,"%27");
<?if (!$boolRunning):?>
<?if (!$boolRunning && !$boolNew):?>
// keep checkbox visually unchecked
$button.closest('form').find('input[name="usb[]"],input[name="pci[]"]').each(function(){
if ($(this).val().indexOf('#remove')>0) $(this).prop('checked',false);