Skip to content

Commit

Permalink
change position error message #2200
Browse files Browse the repository at this point in the history
  • Loading branch information
numew committed Mar 7, 2024
1 parent f844cf3 commit c52f42f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ if (modalUploadFiles) {
}

function initInnerHtml(file) {
var innerHTML;
var innerHTML =`<div class="fr-col-12 file-error"></div>`;
if (modalUploadFiles.dataset.fileType == 'photo') {
innerHTML = `
innerHTML += `
<div class="fr-col-2">
<img class="fr-content-media__img" src="${URL.createObjectURL(file)}">
</div>
<div class="fr-col-6">`
} else {
innerHTML = `<div class="fr-col-8">`
innerHTML += `<div class="fr-col-8">`
}
innerHTML += `
<div class="file-name">
Expand All @@ -154,8 +154,6 @@ if (modalUploadFiles) {
<div class="fr-col-1">
<a href="${deleteTmpFileRoute}" title="Supprimer" class="fr-btn fr-btn--sm fr-btn--secondary fr-background--white fr-fi-delete-line fr-hidden delete-tmp-file delete-html"></a>
</div>
<div class="fr-col-12 file-error">
</div>
`
return innerHTML
}
Expand Down

0 comments on commit c52f42f

Please sign in to comment.