{% import "_includes/forms" as forms %} {% set baseUrl = "seomatic/#{controllerHandle}/" %} {% set params = [ ] %} {% if showSites %} {% if loadFromSiteHandle is defined and loadFromSiteHandle | length %} {% js on ready %} {# I am not proud, but this needs to happen after Craft has determined #} {# the "clean" state of the form, so... setTimeout() #} setTimeout( function() { var input = document.createElement("input"); input.setAttribute("type", "hidden"); input.setAttribute("name", "dirty"); input.setAttribute("value", "form"); document.getElementById("main-form").appendChild(input); }, 1000); {% endjs %} {% endif %}
{% endif %}