N°7122 - Fix wrongfully merged JS inclusion in b08b5297

This commit is contained in:
Molkobain
2024-03-15 11:05:08 +01:00
parent 5f88391935
commit 7b5fa0a912

View File

@@ -543,7 +543,12 @@
});
// Initialize confirmation message handler when a form with touched fields is closed
oBodyElem.portal_leave_handler({'message': '{{ 'Portal:Form:Close:Warning'|dict_s }}'});
oBodyElem.leave_handler({
'message': '{{ 'Portal:Form:Close:Warning'|dict_s }}',
'extra_events': {
'body': ['hide.bs.modal']
}
});
{% endblock %}
});
</script>