diff --git a/meinberlin/assets/js/app.js b/meinberlin/assets/js/app.js index 6a8f7d28ad..04ce96e480 100644 --- a/meinberlin/assets/js/app.js +++ b/meinberlin/assets/js/app.js @@ -32,7 +32,6 @@ require('../../apps/maps/assets/map-address.js') require('../../apps/moderatorremark/assets/idea_remarks.js') require('../../apps/newsletters/assets/dynamic_fields.js') require('../../apps/dashboard/assets/ajax_modal.js') -require('../../assets/js/unload_warning.js') require('../../apps/dashboard/assets/init_accordeons_cookie.js') // This function is overwritten with custom behavior in embed.js. diff --git a/meinberlin/templates/a4dashboard/base_dashboard_project.html b/meinberlin/templates/a4dashboard/base_dashboard_project.html index 1c5e149138..7abb9c57f1 100644 --- a/meinberlin/templates/a4dashboard/base_dashboard_project.html +++ b/meinberlin/templates/a4dashboard/base_dashboard_project.html @@ -55,3 +55,7 @@ {% endblock %} + +{% block extra_js %} + +{% endblock %} diff --git a/webpack.common.js b/webpack.common.js index 6c23bff92c..78b91df9f6 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -34,6 +34,9 @@ module.exports = { 'bootstrap/js/dist/modal.js', './meinberlin/apps/embed/assets/embed.js' ], + unload_warning: [ + './meinberlin/assets/js/unload_warning.js' + ], // A4 dependencies - we want all of them to go through webpack mb_plans_map: [ 'leaflet/dist/leaflet.css',