From 50a557b247f07ca66d9dfded55525c4ad5328ddc Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Fri, 9 Sep 2022 09:40:13 +0200 Subject: [PATCH] Widget: prevent clicks to bubble up outside the widget --- .../static/pretixpresale/js/widget/widget.js | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 15c14dc4c7..c2d893fd13 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -193,7 +193,7 @@ var widget_id = makeid(16); Vue.component('availbox', { template: ('
' + '' + '
' @@ -408,7 +408,7 @@ Vue.component('item', { + '' + '
' + '' + + ' @click.prevent.stop="expand">' + '{{ item.name }}' + '' + '{{ item.name }}' @@ -431,7 +431,7 @@ Vue.component('item', { + ' ' + '
' + '' @@ -686,7 +686,7 @@ var shared_iframe_fragment = ( + ' referrerpolicy="origin">' + 'Please enable frames in your browser!' + '' - + '' @@ -698,8 +698,8 @@ var shared_alert_fragment = ( + '' + '
' + '

{{ $root.error_message }}

' - + '

' - + '

' + + '

' + + '

' + '
' + '
' + '' @@ -761,10 +761,10 @@ Vue.component('pretix-overlay', { Vue.component('pretix-widget-event-form', { template: ('
' + '' @@ -782,14 +782,14 @@ Vue.component('pretix-widget-event-form', { + '
{{ $root.error }}
' + '
' - + '' + strings['cart_exists'] + '
' + '
' + '' @@ -906,7 +906,7 @@ Vue.component('pretix-widget-event-form', { }); Vue.component('pretix-widget-event-list-entry', { - template: ('' + template: ('' + '
{{ event.name }}
' + '' + '
{{ location }}
' // hidden by css for now, but @@ -946,7 +946,7 @@ Vue.component('pretix-widget-event-list-entry', { Vue.component('pretix-widget-event-list', { template: ('
' + '' @@ -955,7 +955,7 @@ Vue.component('pretix-widget-event-list', { + '
' + '
' + '' - + '

' + + '

' + '
'), methods: { back_to_calendar: function () { @@ -983,7 +983,7 @@ Vue.component('pretix-widget-event-list', { }); Vue.component('pretix-widget-event-calendar-event', { - template: ('' + template: ('' + '' + '{{ event.name }}' + '' @@ -1018,7 +1018,7 @@ Vue.component('pretix-widget-event-calendar-event', { }); Vue.component('pretix-widget-event-week-cell', { - template: ('
' + template: ('
' + '
' + '{{ dayhead }}' + '
' @@ -1076,7 +1076,7 @@ Vue.component('pretix-widget-event-week-cell', { }); Vue.component('pretix-widget-event-calendar-cell', { - template: ('' + template: ('' + '
' + '{{ daynum }}' + '
' @@ -1145,7 +1145,7 @@ Vue.component('pretix-widget-event-calendar-row', { Vue.component('pretix-widget-event-calendar', { template: ('
' + '' @@ -1154,11 +1154,11 @@ Vue.component('pretix-widget-event-calendar', { + '
' + '
' + '' @@ -1221,7 +1221,7 @@ Vue.component('pretix-widget-event-calendar', { Vue.component('pretix-widget-event-week-calendar', { template: ('
' + '' @@ -1230,11 +1230,11 @@ Vue.component('pretix-widget-event-week-calendar', { + '
' + '
' + ''