Skip to content

Commit

Permalink
Add data-tab-nav attribute to tab nav container (#130)
Browse files Browse the repository at this point in the history
In wagtail 2.13, the `data-tab-nav' attribute is used for selecting
tab nav elements, replacing selection by the `tab-nav' class.
  • Loading branch information
jams2 authored Jun 12, 2021
1 parent 7ac143f commit 6f7caee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtailmedia/templates/wagtailmedia/chooser/chooser.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ uploadform.media.css }}

{% if uploadform %}
<ul class="tab-nav merged">
<ul class="tab-nav merged" data-tab-nav>
<li class="{% if not uploadform.errors %}active{% endif %}"><a href="#search" >{% trans "Search" %}</a></li>
<li class="{% if uploadform.errors and media_type == 'audio' %}active{% endif %}"><a href="#upload-audio">{% trans "Upload Audio" %}</a></li>
<li class="{% if uploadform.errors and media_type == 'video' %}active{% endif %}"><a href="#upload-video">{% trans "Upload Video" %}</a></li>
Expand Down

0 comments on commit 6f7caee

Please sign in to comment.