Prevent clicking server start button until server is completely off

This commit is contained in:
Dane Everitt 2016-09-28 19:16:10 -04:00
parent b1de054a9d
commit abac9b506b
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 5 additions and 1 deletions

View file

@ -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');
}