2023-08-26 13:34:55 +02:00
|
|
|
// @author rubenwardy
|
|
|
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
window.addEventListener("load", () => {
|
|
|
|
function check_opt() {
|
2024-06-22 16:18:58 +02:00
|
|
|
if (document.querySelector("input[name='upload_mode']:checked").value === "vcs") {
|
2023-08-26 13:34:55 +02:00
|
|
|
document.getElementById("file_upload").parentElement.classList.add("d-none");
|
2024-06-22 16:18:58 +02:00
|
|
|
document.getElementById("vcs_label").parentElement.classList.remove("d-none");
|
2023-08-26 13:34:55 +02:00
|
|
|
} else {
|
|
|
|
document.getElementById("file_upload").parentElement.classList.remove("d-none");
|
2024-06-22 16:18:58 +02:00
|
|
|
document.getElementById("vcs_label").parentElement.classList.add("d-none");
|
2023-08-26 13:34:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-22 16:18:58 +02:00
|
|
|
document.querySelectorAll("input[name='upload_mode']").forEach(x => x.addEventListener("change", check_opt));
|
2023-08-26 13:34:55 +02:00
|
|
|
check_opt();
|
|
|
|
});
|