mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
Update jot-header.tpl
This commit is contained in:
parent
24d2c64883
commit
f44094a9f4
1 changed files with 3 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue