We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db98a4e commit 0a8299fCopy full SHA for 0a8299f
app/Resources/views/base.html.twig
@@ -154,15 +154,15 @@
154
<script>
155
$(document).ready(function() {
156
hljs.initHighlightingOnLoad();
157
+ });
158
- $('body').on('submit', 'form[data-confirmation-message]', function (event) {
159
- var message = $(this).data('confirmation-message');
+ $(document).on('submit', 'form[data-confirmation-message]', function (event) {
160
+ var message = $(this).data('confirmation-message');
161
- if (confirm(message) === false) {
162
- //cancel the event
163
- event.preventDefault();
164
- }
165
- });
+ if (confirm(message) === false) {
+ //cancel the event
+ event.preventDefault();
+ }
166
});
167
</script>
168
{% endblock %}
0 commit comments