From 1999a250956ec6db5e5a06933cf94748b1678e31 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 1 Feb 2020 14:16:20 +0100 Subject: [PATCH] Widget: no reload on buttons --- src/pretix/static/pretixpresale/js/widget/widget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index c4af8ccc2..4d5dc4b8e 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -1079,6 +1079,9 @@ var shared_root_methods = { }, reload: function () { var url; + if (this.$root.is_button) { + return; + } if (this.$root.subevent) { url = this.$root.target_url + this.$root.subevent + '/widget/product_list?lang=' + lang; } else {