Fixed broken upload buttons by changing ID in JS
Update nibblepoker-core.mjs and file-input.jinja
This commit is contained in:
@@ -28,7 +28,7 @@ export function initCore() {
|
|||||||
|
|
||||||
//showContentModal(eContentModal);
|
//showContentModal(eContentModal);
|
||||||
|
|
||||||
// FIXME: Fix this shit !
|
// FIXME: Fix the modals, this is hindering many things !
|
||||||
//[eContentModal, document.getElementById("modal-content-cross"), eContentModalInner].forEach(value => {
|
//[eContentModal, document.getElementById("modal-content-cross"), eContentModalInner].forEach(value => {
|
||||||
// value.onclick = function() {
|
// value.onclick = function() {
|
||||||
// fadeOut(eContentModal, 175).then(r => {
|
// fadeOut(eContentModal, 175).then(r => {
|
||||||
@@ -47,7 +47,7 @@ export function initCore() {
|
|||||||
});*/
|
});*/
|
||||||
|
|
||||||
// Setting up the file drop inputs
|
// 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);
|
//console.log(eRootContainer);
|
||||||
|
|
||||||
/** @type {HTMLInputElement} */
|
/** @type {HTMLInputElement} */
|
||||||
|
@@ -7,7 +7,8 @@
|
|||||||
{% if file_multiple %}multiple{% endif %}>
|
{% if file_multiple %}multiple{% endif %}>
|
||||||
|
|
||||||
{% if file_upload_button or file_clear_button %}
|
{% 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 text_override == "" %}
|
||||||
{% if file_multiple %}
|
{% if file_multiple %}
|
||||||
{{ l10n("file.drop.select.multiple", "commons", user_lang) }}
|
{{ l10n("file.drop.select.multiple", "commons", user_lang) }}
|
||||||
|
Reference in New Issue
Block a user