'use strict';dotclear.ready(()=>{document.getElementById('link-insert-cancel')?.addEventListener('click',()=>{window.close();});for(const line of document.querySelectorAll('#form-entries tr>td.maximal>a')){line.addEventListener('click',(event)=>{const tb=window.opener.the_toolbar;const{data}=tb.elements.link;data.href=tb.stripBaseURL(event.target.getAttribute('title'));data.href_title=event.target.text??'';tb.elements.link.fncall[tb.mode].call(tb);window.close();});}});