forked from CGM_Public/pretix_original
Removed inline javascript URLs
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
alt="{{ item.name }}"/>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href="javascript:void(0);" data-toggle="variations">
|
||||
<a href="#" data-toggle="variations">
|
||||
<strong>{{ item.name }}</strong>
|
||||
</a>
|
||||
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
||||
@@ -90,7 +90,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<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" %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user