unify button update

This commit is contained in:
j 2021-11-24 19:43:34 +01:00
parent e190daac2c
commit bef291d32d

View File

@ -334,12 +334,10 @@ function updateButtons(disabled, is_active) {
$('button.run_from').attr({disabled: disabled})
$('button.loop').attr({disabled: disabled})
$('button.hour_loop').attr({disabled: disabled})
$('button.goto').attr({disabled: disabled})
$('button.continue_from').attr({disabled: disabled})
if (is_active != undefined) {
$('button.run').attr({disabled: is_active})
$('button.stop').attr({disabled: is_active})
}
$('button.run').attr({disabled: is_active})
$('button.stop').attr({disabled: !is_active})
}
function updateStatus() {