From e9373291947b334de13a96632491cd2057691d32 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 28 Jul 2016 23:51:49 +0200 Subject: [PATCH] Removed inline javascript URLs --- src/pretix/presale/templates/pretixpresale/event/index.html | 4 ++-- src/static/pretixpresale/js/ui/main.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/index.html b/src/pretix/presale/templates/pretixpresale/event/index.html index 2ca9fad8b..e13769047 100644 --- a/src/pretix/presale/templates/pretixpresale/event/index.html +++ b/src/pretix/presale/templates/pretixpresale/event/index.html @@ -75,7 +75,7 @@ alt="{{ item.name }}"/> {% endif %} - + {{ item.name }} {% if item.description %}

{{ item.description }}

{% endif %} @@ -90,7 +90,7 @@ {% endif %}
- + {% trans "Show variants" %}
diff --git a/src/static/pretixpresale/js/ui/main.js b/src/static/pretixpresale/js/ui/main.js index 0b2d49513..03ae14a44 100644 --- a/src/static/pretixpresale/js/ui/main.js +++ b/src/static/pretixpresale/js/ui/main.js @@ -8,8 +8,9 @@ $(function () { }); $(".js-only").removeClass("js-only"); $(".variations").hide(); - $("a[data-toggle=variations]").click(function () { + $("a[data-toggle=variations]").click(function (e) { $(this).parent().parent().parent().find(".variations").slideToggle(); + e.preventDefault(); }); $(".collapsed").removeClass("collapsed").addClass("collapse");