summaryrefslogtreecommitdiffstats
path: root/templates/mods/list.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/mods/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mods/list.html b/templates/mods/list.html
index b5420b8..b05a0e6 100644
--- a/templates/mods/list.html
+++ b/templates/mods/list.html
@@ -119,7 +119,7 @@ function batchSubmit(action) {
119 const checked = document.querySelectorAll('input[name="mod_id"]:checked'); 119 const checked = document.querySelectorAll('input[name="mod_id"]:checked');
120 if (checked.length === 0) return; 120 if (checked.length === 0) return;
121 121
122 const form = document.getElementById('batch-form'); 122 const form = document.querySelector('#batch-form');
123 // Clear any previous hidden inputs 123 // Clear any previous hidden inputs
124 form.textContent = ''; 124 form.textContent = '';
125 form.action = '/instances/{{ instance_id }}/mods/batch-' + action; 125 form.action = '/instances/{{ instance_id }}/mods/batch-' + action;
@@ -129,7 +129,7 @@ function batchSubmit(action) {
129 input.type = 'hidden'; 129 input.type = 'hidden';
130 input.name = 'mod_id'; 130 input.name = 'mod_id';
131 input.value = cb.value; 131 input.value = cb.value;
132 form.appendChild(input); 132 form.append(input);
133 } 133 }
134 134
135 form.submit(); 135 form.submit();