'use strict';dotclear.viewPostContent=(line,_action='toggle',e=null)=>{const target=dotclear.node(line);if(!target||target.getAttribute('id')===null)return;const postId=target.getAttribute('id').substring(1);const lineId=`pe${postId}`;let tr=document.getElementById(lineId);if(tr){tr.style.display=tr.style.display==='none'?'':'none';target.classList.toggle('expand');}else{dotclear.getEntryContent(postId,(content)=>{if(content){tr=document.createElement('tr');tr.id=lineId;const td=document.createElement('td');td.colSpan=target.children.length;td.className='expand';tr.appendChild(td);td.append(...dotclear.htmlToNodes(content));target.classList.add('expand');line.parentNode.insertBefore(tr,line.nextSibling);return;}
target.classList.remove('expand');},{clean:e.metaKey,},);}};dotclear.ready(()=>{dotclear.expandContent({line:document.querySelector('#form-entries tr:not(.line)'),lines:document.querySelectorAll('#form-entries tr.line'),callback:dotclear.viewPostContent,});for(const elt of document.querySelectorAll('.checkboxes-helpers')){dotclear.checkboxesHelpers(elt,undefined,'#form-entries td input[type=checkbox]','#form-entries #do-action');}
dotclear.enableShiftClick('#form-entries td input[type=checkbox]');dotclear.condSubmit('#form-entries td input[type=checkbox]','#form-entries #do-action');dotclear.postsActionsHelper();dotclear.responsiveCellHeaders(document.querySelector('#form-entries table'),'#form-entries table',1,true);});