Fixed broken upload buttons by changing ID in JS

Update nibblepoker-core.mjs and file-input.jinja
This commit is contained in:
2025-09-13 16:24:29 +02:00
parent 2eb9d5c7a5
commit abd7046fe2
2 changed files with 4 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ export function initCore() {
//showContentModal(eContentModal);
// FIXME: Fix this shit !
// FIXME: Fix the modals, this is hindering many things !
//[eContentModal, document.getElementById("modal-content-cross"), eContentModalInner].forEach(value => {
// value.onclick = function() {
// fadeOut(eContentModal, 175).then(r => {
@@ -47,7 +47,7 @@ export function initCore() {
});*/
// Setting up the file drop inputs
document.querySelectorAll(".np-file-input-root-container").forEach(eRootContainer => {
document.querySelectorAll(".np-file-input-drop-container").forEach(eRootContainer => {
//console.log(eRootContainer);
/** @type {HTMLInputElement} */

View File

@@ -7,7 +7,8 @@
{% if file_multiple %}multiple{% endif %}>
{% if file_upload_button or file_clear_button %}
<p class="np-file-drop-text pt-s mb-s">
<p id="{{ file_input_id }}-text-drop"
class="np-file-drop-text pt-s mb-s">
{% if text_override == "" %}
{% if file_multiple %}
{{ l10n("file.drop.select.multiple", "commons", user_lang) }}