iu
This commit is contained in:
parent
5a2c2ff573
commit
77efe1eae7
5 changed files with 6 additions and 37 deletions
|
|
@ -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");
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue