Update jot-header.tpl

This commit is contained in:
Ray 2023-03-06 12:06:03 -05:00
parent 24d2c64883
commit f44094a9f4

View file

@ -819,16 +819,9 @@ let postSaveTimer = null;
//case "text/html":
//case "text/vnd.abc": these 2 don't work, they open the download dialog
case "text/plain":
{{* let sendplain = `/cloud/${address}/${result.display_path}`; *}}
let sendplain = `/store/${result.os_path}.thumb`;
{{* alert(sendplain);
let plainTmb = createEmbedThumbnail(sendplain);
alert(plainTmb);
return; *}}
{{*return`<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendplain}')" data-bs-dismiss="modal" ><h4>${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><iframe src="/cloud/${address}/${result.display_path}" ></iframe></li>`; *}}
return`<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendplain}')" data-bs-dismiss="modal" ><h4>${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><img src="data:image/png;base64,${sendplain}" ></img></li>`;
default:
let sendplain = `/cloud/${address}/${result.display_path}`;
return`<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendplain}')" data-bs-dismiss="modal" ><h4>${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><iframe src="/cloud/${address}/${result.display_path}" ></iframe></li>`;
default:
return;
}
}