mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Removed inline javascript URLs
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
alt="{{ item.name }}"/>
|
alt="{{ item.name }}"/>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="javascript:void(0);" data-toggle="variations">
|
<a href="#" data-toggle="variations">
|
||||||
<strong>{{ item.name }}</strong>
|
<strong>{{ item.name }}</strong>
|
||||||
</a>
|
</a>
|
||||||
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-xs-6 availability-box">
|
<div class="col-md-2 col-xs-6 availability-box">
|
||||||
<a href="javascript:void(0);" data-toggle="variations" class="js-only">
|
<a href="#" data-toggle="variations" class="js-only">
|
||||||
{% trans "Show variants" %}
|
{% trans "Show variants" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ $(function () {
|
|||||||
});
|
});
|
||||||
$(".js-only").removeClass("js-only");
|
$(".js-only").removeClass("js-only");
|
||||||
$(".variations").hide();
|
$(".variations").hide();
|
||||||
$("a[data-toggle=variations]").click(function () {
|
$("a[data-toggle=variations]").click(function (e) {
|
||||||
$(this).parent().parent().parent().find(".variations").slideToggle();
|
$(this).parent().parent().parent().find(".variations").slideToggle();
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
$(".collapsed").removeClass("collapsed").addClass("collapse");
|
$(".collapsed").removeClass("collapsed").addClass("collapse");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user