unify button update
This commit is contained in:
parent
e190daac2c
commit
bef291d32d
|
@ -334,12 +334,10 @@ function updateButtons(disabled, is_active) {
|
||||||
$('button.run_from').attr({disabled: disabled})
|
$('button.run_from').attr({disabled: disabled})
|
||||||
$('button.loop').attr({disabled: disabled})
|
$('button.loop').attr({disabled: disabled})
|
||||||
$('button.hour_loop').attr({disabled: disabled})
|
$('button.hour_loop').attr({disabled: disabled})
|
||||||
|
$('button.goto').attr({disabled: disabled})
|
||||||
$('button.continue_from').attr({disabled: disabled})
|
$('button.continue_from').attr({disabled: disabled})
|
||||||
if (is_active != undefined) {
|
$('button.run').attr({disabled: is_active})
|
||||||
$('button.run').attr({disabled: is_active})
|
$('button.stop').attr({disabled: !is_active})
|
||||||
$('button.stop').attr({disabled: is_active})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateStatus() {
|
function updateStatus() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user