disable other run options

This commit is contained in:
j 2018-12-04 16:26:22 +01:00
parent f761ea0530
commit 1dd8ac7c16

View File

@ -292,6 +292,8 @@ function updateStatus() {
if (response.result) {
$('#status').html(response.result.status)
$('button.run').attr({disabled: response.result.status == 'Active'})
$('button.run_from').attr({disabled: response.result.status == 'Active'})
$('button.continue_from').attr({disabled: response.result.status == 'Active'})
$('button.stop').attr({disabled: response.result.status != 'Active'})
if (response.result.duration && response.result.status == 'Active') {
$('#duration').html(formatDuration(response.result.duration))