Update jot-header.tpl

This commit is contained in:
Ray 2023-03-07 18:38:34 -05:00
parent e3b84a6f59
commit 9fc7041fc0

View file

@ -813,7 +813,7 @@ let postSaveTimer = null;
return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendmpeg}')" data-bs-dismiss="modal" ><h4>${result.filename}</h4><img src="/images/mp3.png" class="img-fluid my-2" ><audio src="/cloud/${address}/${result.display_path}" controls="controls" preload="none" /></li>`; return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendmpeg}')" data-bs-dismiss="modal" ><h4>${result.filename}</h4><img src="/images/mp3.png" class="img-fluid my-2" ><audio src="/cloud/${address}/${result.display_path}" controls="controls" preload="none" /></li>`;
//case "text/html": //case "text/html":
case "text/vnd.abc": these 2 don't work, they open the download dialog case "text/vnd.abc": these 2 don't work, they open the download dialog
let sendabc = `[abc]/cloud/${address}/${result.display_path}[/abc]`; let sendabc = `[abc]/store/${address}/${result.os_path}.abc[/abc]`;
return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendabc}')" data-bs-dismiss="modal" ><h4>${result.filename}</h4><iframe src="store/${address}/${result.os_path}.abc" scrolling="no" ></iframe></li>`; return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendabc}')" data-bs-dismiss="modal" ><h4>${result.filename}</h4><iframe src="store/${address}/${result.os_path}.abc" scrolling="no" ></iframe></li>`;
case "text/plain": case "text/plain":
case "application/json": case "application/json":