mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
Update jot-header.tpl
This commit is contained in:
parent
f05438faec
commit
f6fdc402ad
1 changed files with 3 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue