Update jot-header.tpl

This commit is contained in:
Ray 2023-03-10 10:18:50 -05:00
parent 1e5f5c8b00
commit afe6e7c020

View file

@ -799,7 +799,7 @@ let postSaveTimer = null;
case "image/gif":
//case "image/svg+xml": not working
let send = `[img]${baseurl}/cloud/${address}/${result.display_path}[/img]`;
document.getElementById(`"embedFiles_${result.id}"`).addEventListener("click", function() { setEmbedFiles(send); });
document.getElementById(`embedFiles_${result.id}`).addEventListener("click", function() { setEmbedFiles(send); });
/* test(result); */
return `<li id = "embedFiles_${result.id}" data-bs-dismiss="modal" ><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
case "video/mp4":