Revert "Update jot-header.tpl"

This reverts commit b01a334c69.
This commit is contained in:
Ray 2023-02-28 11:26:51 -05:00
parent b01a334c69
commit f9774938aa

View file

@ -788,9 +788,8 @@ let postSaveTimer = null;
return `<li onclick ="setEmbedFiles('${send}')"><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
//return `<li onclick ="choosePhotoFromAlbum('${send}')"><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
case "video/mp4":
case "video/webm":
let sendmp4 = `/cloud/${address}/${result.display_path}`;
return `<li class="border rounded my-1 p-2" ><h4 onclick ="setEmbedFiles('${sendmp4}')">${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><video poster="" controls="controls" preload="none" src="/cloud/${address}/${result.display_path}#t=0.1" style="width:100%;" /></li>`;
return `<li class="border rounded my-1 p-2" ><h4 onclick ="setEmbedFiles('${sendmp4}')">${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><video poster="images/video_poster.jpg" controls="controls" preload="none" src="/cloud/${address}/${result.display_path}" style="width:100%;" /></li>`;
case "audio/mpeg":
let sendmpeg = `/cloud/${address}/${result.display_path}`;
return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendmpeg}')"><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>`;