'use strict';dotclear.ready(()=>{for(const element of document.querySelectorAll('.checkboxes-helpers')){dotclear.checkboxesHelpers(element,$('#menuitems td input[name^=items_selected]'),'#menuitems td input[name^=items_selected]','#menuitems #remove-action',);}
dotclear.condSubmit('#menuitems tr td input[name^=items_selected]','#menuitems #remove-action');dotclear.responsiveCellHeaders(document.querySelector('#menuitems table'),'#menuitems table',2);const msg=dotclear.getData('simplemenu');document.querySelector('#menuitems #remove-action')?.addEventListener('click',(event)=>{if(globalThis.confirm(msg.confirm_items_delete))return true;event.preventDefault();return false;});});