From ec54aa0457966f037e3be549df16c4713175ddcb Mon Sep 17 00:00:00 2001 From: Pablo Silva Date: Sun, 8 Dec 2024 18:18:50 +0000 Subject: [PATCH] Fix API output usage on ajax requests --- .../users/components/elements-modal.jinja2 | 24 +++++++++---------- tasks.py | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/users/jinja2/users/components/elements-modal.jinja2 b/src/users/jinja2/users/components/elements-modal.jinja2 index ae554b00..89dc7760 100644 --- a/src/users/jinja2/users/components/elements-modal.jinja2 +++ b/src/users/jinja2/users/components/elements-modal.jinja2 @@ -21,7 +21,7 @@ $('#element-upload-info').replaceWith( '

' + {{ _("Uploaded by ")|tojson }} + - owner + ', ' + + owner.username + ', ' + {{ _("in ")|tojson }} + new Date(date).toLocaleDateString() + '

' ) } @@ -36,11 +36,12 @@ '

' ) } - function usedInExhibit(marker_id, object_id, exhibits_count, marker_src, augmented_src, element_id){ + function usedInExhibit(marker_id, object_id, exhibits_count, marker, augmented, element_id){ let object_tag = '' + let augmented_src = augmented.source if(augmented_src.split('.')[1] == 'mp4' || augmented_src.split('.')[1] == 'webm'){ object_tag = '