Skip to content

Commit

Permalink
Update build/media_source/com_templates/js/admin-templates-default.es…
Browse files Browse the repository at this point in the history
…6.js

Co-authored-by: Dimitris Grammatikogiannis <dg@dgrammatiko.dev>
  • Loading branch information
C-Lodder and dgrammatiko committed Feb 9, 2024
1 parent bc8fe00 commit 0c03530
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
event.currentTarget.classList.add('selected');
const ismedia = event.currentTarget.dataset.base === 'media' ? 1 : 0;

document.querySelectorAll('#fileModal input.address').forEach((element) => {
element.value = event.currentTarget.getAttribute('data-id');
});
document.querySelectorAll('#fileModal input.address').forEach((element) => element.value = event.currentTarget.getAttribute('data-id'));

document.querySelectorAll('#fileModal input[name="isMedia"]').forEach((el) => {
el.value = ismedia;
Expand Down

0 comments on commit 0c03530

Please sign in to comment.