mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 11:12:14 +00:00
* Job refactor 2: less hardcoded lists * CRITICAL DEP 1 * CRITCAL DEP 2 * Update nanotrasen_admiral.dm * Update nanotrasen_admiral.dm * Update nanotrasen_admiral.dm Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
11 lines
362 B
JavaScript
11 lines
362 B
JavaScript
function toggle_other_checkboxes(source, copycats_str, our_index_str) {
|
|
const copycats = parseInt(copycats_str);
|
|
const our_index = parseInt(our_index_str);
|
|
for (var i = 1; i <= copycats; i++) {
|
|
if(i === our_index) {
|
|
continue;
|
|
}
|
|
document.getElementById(source.id.slice(0, -1) + i).checked = source.checked;
|
|
}
|
|
}
|