From a0aad0d0a5ac566257332f16552b1aceb4a527d9 Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Wed, 14 Jul 2021 14:29:37 +0200 Subject: [PATCH] Click event on button is trigged when submitting a form with enter #217 --- project/static/jquery.recurrenceinput.js | 4 ++-- project/templates/_macros.html | 4 ++-- project/templates/event/update.html | 8 ++++---- project/templates/widget/event_date/list.html | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/project/static/jquery.recurrenceinput.js b/project/static/jquery.recurrenceinput.js index f388e43..44f4fda 100644 --- a/project/static/jquery.recurrenceinput.js +++ b/project/static/jquery.recurrenceinput.js @@ -265,8 +265,8 @@ var DISPLAYTMPL = ['
', '
', '{{if !readOnly}}', - '', - '', + '', + '', '{{/if}}', '', '
', diff --git a/project/templates/_macros.html b/project/templates/_macros.html index ecf92da..504f979 100644 --- a/project/templates/_macros.html +++ b/project/templates/_macros.html @@ -1097,8 +1097,8 @@ if (URL) {
- - + + diff --git a/project/templates/event/update.html b/project/templates/event/update.html index 2637d1f..698442d 100644 --- a/project/templates/event/update.html +++ b/project/templates/event/update.html @@ -10,8 +10,8 @@ // Organizer var organizer_select =$('#organizer_id'); var input_group = organizer_select.parent(); - input_group.append(''); - input_group.append(''); + input_group.append(''); + input_group.append(''); $('#organizer-edit-btn').click(function () { window.open('/organizer/' + organizer_select.val() + '/update'); return false; @@ -24,8 +24,8 @@ // Place var place_select =$('#event_place_id'); var input_group = place_select.parent(); - input_group.append(''); - input_group.append(''); + input_group.append(''); + input_group.append(''); $('#place-edit-btn').click(function () { window.open('/event_place/' + place_select.val() + '/update'); return false; diff --git a/project/templates/widget/event_date/list.html b/project/templates/widget/event_date/list.html index 0141a1b..48a62d4 100644 --- a/project/templates/widget/event_date/list.html +++ b/project/templates/widget/event_date/list.html @@ -102,6 +102,6 @@ {{ render_pagination(pagination) }} - + {% endblock %} \ No newline at end of file