Skip to content

Commit

Permalink
A quick attempt at fixing official-stockfish#625 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdbergh committed May 3, 2020
1 parent 4e0d989 commit f68b4c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fishtest/fishtest/templates/tests_run.mak
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,14 @@
update_sprt_bounds($(this).val());
});

const initial_base_branch = $('#base-branch').val();
const initial_base_signature = $('#base-signature').val();
var initial_base_branch = $('#base-branch').val();
var initial_base_signature = $('#base-signature').val();
var spsa_do_not_save = false;
$('.btn-group .btn').on('click', function() {
if(!spsa_do_not_save){
initial_base_branch = $('#base-branch').val();
initial_base_signature = $('#base-signature').val();
}
const $btn = $(this);
$(this).parent().find('.btn').removeClass('btn-info');
$(this).addClass('btn-info');
Expand Down Expand Up @@ -366,11 +371,13 @@
$('#test-signature').on('input', function() {
$('#base-signature').val($(this).val());
})
spsa_do_not_save = true;
} else {
$('#base-branch').removeAttr('readonly').val(initial_base_branch);
$('#base-signature').removeAttr('readonly').val(initial_base_signature);
$('#test-branch').off('input');
$('#test-signature').off('input');
spsa_do_not_save = false;
}
%endif
if (stop_rule === 'sprt') {
Expand Down

0 comments on commit f68b4c3

Please sign in to comment.