Loading plugins/survey/survey.cpp +4 −5 Changes for plugins/survey/survey.cpp: 4 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -2781,17 +2781,16 @@ namespace blogi { << "if(!ml||ml.length===0){contentEl.textContent='Leer';return;}" << "var h='<div style=\"display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;\">';" << "for(var i=0;i<ml.length;i++){var m=ml[i];" << "var thumb='/media/getimage/'+m.id+'.webp?w=100&h=100';" << "h+='<div class=\"se-mb-item\" data-id=\"'+esc(m.id)+'\" style=\"cursor:pointer;border:2px solid transparent;border-radius:8px;padding:4px;background:#3a3e42;text-align:center;\">';" << "var thumb=m.url+'?w=100&h=100';" << "h+='<div class=\"se-mb-item\" data-url=\"'+esc(m.url)+'\" style=\"cursor:pointer;border:2px solid transparent;border-radius:8px;padding:4px;background:#3a3e42;text-align:center;\">';" << "if(m.kind==='image')h+='<img src=\"'+esc(thumb)+'\" loading=\"lazy\" style=\"width:100%;height:70px;object-fit:cover;border-radius:4px;\"/>';" << "else h+='<div style=\"height:70px;display:flex;align-items:center;justify-content:center;font-size:2em;\">📄</div>';" << "h+='<div style=\"font-size:.7em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\">'+esc(m.filename)+'</div></div>';}" << "h+='</div>';contentEl.innerHTML=h;" << "contentEl.onclick=function(ev){" << "var it=ev.target.closest('.se-mb-item');if(!it)return;" << "var mid=it.getAttribute('data-id');" << "targetInput.value='/media/getimage/'+mid+'.webp?w=64';" << "apiCall([{command:'media_create_preview',media_id:mid,width:64,height:64}],function(){});" << "var murl=it.getAttribute('data-url');" << "targetInput.value=murl+'?w=64';" << "ov.remove();};});}" << "" << "render();" Loading Loading
plugins/survey/survey.cpp +4 −5 Changes for plugins/survey/survey.cpp: 4 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -2781,17 +2781,16 @@ namespace blogi { << "if(!ml||ml.length===0){contentEl.textContent='Leer';return;}" << "var h='<div style=\"display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;\">';" << "for(var i=0;i<ml.length;i++){var m=ml[i];" << "var thumb='/media/getimage/'+m.id+'.webp?w=100&h=100';" << "h+='<div class=\"se-mb-item\" data-id=\"'+esc(m.id)+'\" style=\"cursor:pointer;border:2px solid transparent;border-radius:8px;padding:4px;background:#3a3e42;text-align:center;\">';" << "var thumb=m.url+'?w=100&h=100';" << "h+='<div class=\"se-mb-item\" data-url=\"'+esc(m.url)+'\" style=\"cursor:pointer;border:2px solid transparent;border-radius:8px;padding:4px;background:#3a3e42;text-align:center;\">';" << "if(m.kind==='image')h+='<img src=\"'+esc(thumb)+'\" loading=\"lazy\" style=\"width:100%;height:70px;object-fit:cover;border-radius:4px;\"/>';" << "else h+='<div style=\"height:70px;display:flex;align-items:center;justify-content:center;font-size:2em;\">📄</div>';" << "h+='<div style=\"font-size:.7em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;\">'+esc(m.filename)+'</div></div>';}" << "h+='</div>';contentEl.innerHTML=h;" << "contentEl.onclick=function(ev){" << "var it=ev.target.closest('.se-mb-item');if(!it)return;" << "var mid=it.getAttribute('data-id');" << "targetInput.value='/media/getimage/'+mid+'.webp?w=64';" << "apiCall([{command:'media_create_preview',media_id:mid,width:64,height:64}],function(){});" << "var murl=it.getAttribute('data-url');" << "targetInput.value=murl+'?w=64';" << "ov.remove();};});}" << "" << "render();" Loading