From 58111465bcad3c3b13d92402b854bc56d2fe6a3c Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 7 Jan 2018 19:35:19 +0100 Subject: [PATCH] Widget: Number input field should always have english decimal separator --- src/pretix/static/pretixpresale/js/widget/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 27368dc1b..d5dc9a6b4 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -203,9 +203,9 @@ Vue.component('pricebox', { computed: { display_price: function () { if (this.$root.display_net_prices) { - return floatformat(this.price.net, 2); + return roundTo(parseFloat(this.price.net), 2).toFixed(2); } else { - return floatformat(this.price.gross, 2); + return roundTo(parseFloat(this.price.gross), 2).toFixed(2); } }, priceline: function () {