Update jot-header.tpl

This commit is contained in:
Ray 2023-03-07 17:33:53 -05:00
parent f05438faec
commit f6fdc402ad

View file

@ -759,7 +759,8 @@ let postSaveTimer = null;
{{* start new test *}}
let test = function (result) {
$.post("wall_attach/{{$nickname}}", result,
var array = Object.keys(result);
$.post("wall_attach/{{$nickname}}", array,
function(data) {
alert(JSON.stringify(data));
addeditortext(data.message);
@ -798,7 +799,7 @@ let postSaveTimer = null;
case "image/gif":
//case "image/svg+xml": not working
let send = `[img]${baseurl}/cloud/${address}/${result.display_path}[/img]`;
/* test(result); */
test(result);
return `<li onclick ="setEmbedFiles('${send}')" data-bs-dismiss="modal" ><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
case "video/mp4":
case "video/webm":