Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove forms dependency on 'extras' #385

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

adamchainz
Copy link
Contributor

Refs #383. Avoid <script src="/static/leaflet/leaflet.extras.js"></script> being rendered twice when the forms plugin is requested. This also fixes the syntax error since it avoids reusing imgPathElement, as leaflet.extras.js would now only be included once.

@adamchainz adamchainz force-pushed the forms_no_extras_dep branch from 0874e17 to 01b7d48 Compare October 1, 2024 21:29
js = ['leaflet/leaflet.js'] + PLUGINS[PLUGIN_FORMS]['js']
js = [
'leaflet/leaflet.js',
'leaflet/leaflet.extras.js',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-adding the "extras" file here, because it's no longer coming from the form plugin dependencies.

@Gagaro Gagaro merged commit 8efe275 into makinacorpus:master Oct 14, 2024
13 checks passed
@adamchainz adamchainz deleted the forms_no_extras_dep branch November 15, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants