Currently certain module or content elements will not have the ajax reload checkbox from bundles that might get loaded after the RichardhjContaoAjaxReloadElementBundle. This currently includes the contao/calendar-bundle for example - so there is no ajax reload checkbox in the modules of the Calendar Bundle.
This PR fixes this by modifying the palette in an onload_callback instead, ensuring that all palettes are already defined at that point (minus palettes that are themselves added in an onload_callback, but that's an edge case anyway and can be solved later on when increasing the minimum Contao version to 4.9 by using service tagging and a priority).
Currently certain module or content elements will not have the ajax reload checkbox from bundles that might get loaded after the
RichardhjContaoAjaxReloadElementBundle
. This currently includes thecontao/calendar-bundle
for example - so there is no ajax reload checkbox in the modules of the Calendar Bundle.This PR fixes this by modifying the palette in an
onload_callback
instead, ensuring that all palettes are already defined at that point (minus palettes that are themselves added in anonload_callback
, but that's an edge case anyway and can be solved later on when increasing the minimum Contao version to 4.9 by using service tagging and a priority).