'use strict';dotclear.viewCommentContent=(line,action='toggle',e=null)=>{if($(line).attr('id')==undefined){return;}
const commentId=$(line).attr('id').substr(1);const lineId=`ce${commentId}`;let tr=document.getElementById(lineId);const clean=e.metaKey||$(line).hasClass('sts-junk');if(tr){$(tr).toggle();$(line).toggleClass('expand');}else{dotclear.getCommentContent(commentId,(content)=>{if(content){tr=document.createElement('tr');tr.id=lineId;const td=document.createElement('td');td.colSpan=$(line).children('td').length;td.className='expand';tr.appendChild(td);$(td).append(content);$(line).addClass('expand');line.parentNode.insertBefore(tr,line.nextSibling);}else{$(line).removeClass('expand');}},{clean,},);}};$(()=>{$.expandContent({line:$('#form-comments tr:not(.line)'),lines:$('#form-comments tr.line'),callback:dotclear.viewCommentContent,});$('.checkboxes-helpers').each(function(){dotclear.checkboxesHelpers(this,undefined,'#form-comments td input[type=checkbox]','#form-comments #do-action');});$('#form-comments td input[type=checkbox]').enableShiftClick();dotclear.commentsActionsHelper();dotclear.condSubmit('#form-comments td input[type=checkbox]','#form-comments #do-action');dotclear.responsiveCellHeaders(document.querySelector('#form-comments table'),'#form-comments table',1);$('form input[type=submit][name=delete_all_spam]').on('click',()=>window.confirm(dotclear.msg.confirm_spam_delete));});