This commit is contained in:
shocknet-justin 2025-10-08 16:46:12 -04:00
parent 5a2c2ff573
commit 77efe1eae7
5 changed files with 6 additions and 37 deletions

View file

@ -1,23 +1,10 @@
$(() => {
let backup; let manual_backup;
$("#backup").click(() => {
backup = $("#backup").prop("checked");
$('#manual-backup').prop("checked",false);
$('input[name="backup-option"]').change(() => {
const nextButton = $("#next-button");
if (backup) {
if ($('input[name="backup-option"]:checked').length > 0) {
nextButton.removeClass("hidden-button");
} else {
nextButton.addClass("hidden-button");
}
});
$("#manual-backup").click(()=>{
manual_backup = $('#manual-backup').prop("checked");
$("#backup").prop("checked",false);
const nextButton = $("#next-button");
if(manual_backup) {
nextButton.removeClass("hidden-button");
} else {
nextButton.addClass("hidden-button");
};
});
});

View file

@ -6,14 +6,4 @@ $(() => {
$("#close-question").click(() => {
$("#question-content").hide();
});
$("#automate").click(() => {
$('[data-group="service"]').prop("checked", false);
$("#automate").prop("checked", true);
});
$("#manual").click(() => {
$('[data-group="service"]').prop("checked", false);
$("#manual").prop("checked", true);
});
});