Prevent clicking server start button until server is completely off
This commit is contained in:
parent
b1de054a9d
commit
abac9b506b
2 changed files with 5 additions and 1 deletions
|
@ -442,7 +442,9 @@ $(window).load(function () {
|
|||
$('[data-attr="power"][data-action="start"]').addClass('disabled');
|
||||
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').removeClass('disabled');
|
||||
} else {
|
||||
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
|
||||
if (data == 0) {
|
||||
$('[data-attr="power"][data-action="start"]').removeClass('disabled');
|
||||
}
|
||||
$('[data-attr="power"][data-action="stop"], [data-attr="power"][data-action="restart"]').addClass('disabled');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue