terminal42 / contao-ajaxform

Submit a form through ajax and display error or confirmation message.
15 stars 7 forks source link

Use node.append in order to execute scripts #21

Closed fritzmg closed 1 year ago

fritzmg commented 2 years ago

Currently, if you have a custom ajaxform_confirm template with a <script>, then that JavaScript won't be executed. This PR changes that by using .append rather than just .innerHTML = … - which will also parse and execute <script>.

fritzmg commented 1 year ago

Reminder @qzminski @aschempp

qzminski commented 1 year ago

I am fine with this, @aschempp ?

aschempp commented 1 year ago

sorry I missed this one, will be released as 1.3