Handle the case when switching to no array, and an array 'prefer' move setting is set.

This commit is contained in:
dlandon
2024-05-23 09:32:58 -05:00
parent ed1ee47ce4
commit ad2e98ea46

View File

@@ -676,7 +676,12 @@ function updateScreen(cache, slow) {
$('#secondary option:eq(1)').prop('disabled', poolsOnly);
$('#moverDirection1 option:eq(0)').text($('#primary option:eq(' + z(0) + ')').text() + ' → ' + $('#secondary option:eq(' + z(1) + ')').text());
$('#moverDirection1 option:eq(1)').text($('#secondary option:eq(' + z(1) + ')').text() + ' → ' + $('#primary option:eq(' + z(0) + ')').text());
$('#moverDirection1').val('1').show();
if (!poolsOnly) {
$('#moverDirection1').val('1').show();
} else {
secondaryDropdown.selectedIndex = 0;
$('#moverDirection1').val('1').hide();
}
$('#moverDirection2').hide();
$('#moreSettings1').hide(slow);
$('#cow-setting').hide(slow);