'use strict';dotclear.ready(()=>{const href=document.getElementById('href');const liok=document.getElementById('link-insert-ok');if(liok&&href){liok.setAttribute('disabled',true);liok.classList.add('disabled');href?.addEventListener('input',function(){if(this.value===''){liok.setAttribute('disabled',true);}else{liok.removeAttribute('disabled');}
liok.classList.toggle('disabled',this.value==='');});href.focus();}
dotclear.enterKeyInForm('#link-insert-form','#link-insert-ok','#link-insert-cancel');});