rcpch / rcpch-audit-engine

Epilepsy12 Audit Platform
https://e12.rcpch.ac.uk/
GNU Affero General Public License v3.0
5 stars 5 forks source link

move-sweetalert2-to-static #970

Closed eatyourpeas closed 4 months ago

eatyourpeas commented 4 months ago

Fixes #962

Overview

Users in one centre cannot register children because the sweetalert popup does not fire on setting the first paediatric assessment date. All other JS-related function on the same page works, so it is hypothesised that the sweetalert2 dependency is not loading, as this is pulled from CDN, not from local staticfiles(as are jquery, htmx etc)

Code changes

Add latest minified sweetalert2 code version to static folder and update the link in the head of base.html. (this in any case was a recommendation in our pen tests)

Documentation changes (done or required as a result of this PR)

Bug fix

Related Issues

962 - will not be possible to close the issue until merged into live and user is contacted