fix: Re-add agenda day navigation targets to right-hand nav (#3723)

Fixes #3698
This commit is contained in:
Lars Eggert 2022-03-22 13:22:25 +01:00 committed by GitHub
parent fd2adc86eb
commit d47692546e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -110,15 +110,15 @@ $(function () {
const contentElement = $('#content.ietf-auto-nav');
if (contentElement.length > 0) {
const headings = contentElement
.find("h1:visible, h2:visible, h3:visible, h4:visible, h5:visible, h6:visible")
.find("h1:visible, h2:visible, h3:visible, h4:visible, h5:visible, h6:visible, .nav-heading:visible")
.not(".navskip");
const contents = (headings.length > 0) &&
($(headings)
.html()
.split("<")
.shift()
.trim());
($(headings)
.html()
.split("<")
.shift()
.trim());
if (
contents &&
@ -143,7 +143,7 @@ $(function () {
</nav>
</div>
`))
.find("h1:visible, h2:visible, h3:visible, h4:visible, h5:visible, h6:visible")
.find("h1:visible, h2:visible, h3:visible, h4:visible, h5:visible, h6:visible, .nav-heading:visible")
.not(".navskip")
.each(function () {
// Some headings have complex HTML in them - only use first part in that case.

View file

@ -110,7 +110,8 @@
{% ifchanged item.timeslot.time|date:"Y-m-d" %}
<tr class="table-primary show-with-children">
<th colspan="{% if personalize %}6{% else %}5{% endif %}"
id="slot-{{ item.timeslot.time|slugify }}">
id="slot-{{ item.timeslot.time|slugify }}"
class="nav-heading">
{{ item.timeslot.time|date:"l, F j, Y" }}
</th>
</tr>