Skip to content

Commit

Permalink
Welcome back Safari users and sorry for the exclusion :)
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Mar 29, 2023
1 parent 877c89c commit c9c6fc0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/pages/content/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
12 changes: 6 additions & 6 deletions src/pages/content/restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/content/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class="fa fa-info"></i> Those must return exit code 0 for success detection</sma
console.debug('Setting select settings...');
$('select[data-setting]').each(function (index) {
console.debug($(this).attr('name'), $(this).data('setting'));
$(this).find('option[value="' + $(this).data('setting') + '"]').attr('selected', 'selected');
$(this).find('option[value="' + $(this).data('setting') + '"]').prop('selected', true);
});


Expand Down

0 comments on commit c9c6fc0

Please sign in to comment.