diff --git a/src/pages/content/log.php b/src/pages/content/log.php index af26185..6e49acc 100644 --- a/src/pages/content/log.php +++ b/src/pages/content/log.php @@ -74,16 +74,16 @@ function checkBackup() { data: {action: 'getBackupState'} }).done(function (data) { if (data.running) { - $('#abortBtn').removeAttr('disabled'); - $('#dlLogBtn, #dlDbgLogBtn').attr('disabled', 'disabled'); + $('#abortBtn').prop('disabled', false); + $('#dlLogBtn, #dlDbgLogBtn').prop('disabled', true); $('#backupStatusText').removeClass('backupNotRunning'); $('#backupStatusText').addClass('backupRunning'); $('#abLog').animate({ scrollTop: $('#abLog')[0].scrollHeight - $('#abLog')[0].clientHeight }, 100); } else { - $('#abortBtn').attr('disabled', 'disabled'); - $('#dlLogBtn, #dlDbgLogBtn').removeAttr('disabled'); + $('#abortBtn').prop('disabled', true); + $('#dlLogBtn, #dlDbgLogBtn').prop('disabled', false); $('#backupStatusText').removeClass('backupRunning'); $('#backupStatusText').addClass('backupNotRunning'); } diff --git a/src/pages/content/restore.php b/src/pages/content/restore.php index 86514a1..c6aa405 100644 --- a/src/pages/content/restore.php +++ b/src/pages/content/restore.php @@ -116,26 +116,26 @@ function checkRestoreItem() { $('#restoreItemsDiv').show(); if (!data.result.configFile) { - $('#restoreItemConfig').attr('disabled', 'disabled'); + $('#restoreItemConfig').prop('disabled', true); $('#restoreItemConfig').prop('checked', false); } else { - $('#restoreItemConfig').removeAttr('disabled'); + $('#restoreItemConfig').prop('disabled', false); $('#restoreItemConfig').prop('checked', false); } if (!data.result.extraFiles) { - $('#restoreItemExtraFiles').attr('disabled', 'disabled'); + $('#restoreItemExtraFiles').prop('disabled', true); $('#restoreItemExtraFiles').prop('checked', false); } else { - $('#restoreItemExtraFiles').removeAttr('disabled'); + $('#restoreItemExtraFiles').prop('disabled', false); $('#restoreItemExtraFiles').prop('checked', false); } if (!data.result.vmMeta) { - $('#restoreItemVmMeta').attr('disabled', 'disabled'); + $('#restoreItemVmMeta').prop('disabled', true); $('#restoreItemVmMeta').prop('checked', false); } else { - $('#restoreItemVmMeta').removeAttr('disabled'); + $('#restoreItemVmMeta').prop('disabled', false); $('#restoreItemVmMeta').prop('checked', false); } diff --git a/src/pages/content/settings.php b/src/pages/content/settings.php index f2eabfd..094fa74 100644 --- a/src/pages/content/settings.php +++ b/src/pages/content/settings.php @@ -502,7 +502,7 @@ class="fa fa-info"> Those must return exit code 0 for success detection