Revert "Update jot-header.tpl"

This reverts commit 1fe1995b20.
This commit is contained in:
Ray 2023-03-13 09:44:18 -04:00
parent 1fe1995b20
commit 4dfcfb6dab

View file

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