Fix hx targets
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
{{define "timeline.html"}}
|
||||
<div class="timeline">
|
||||
<div class="timeline" id="timeline">
|
||||
<div class="timeline-header">
|
||||
<button
|
||||
hx-get="/timeline/{{.PrevYear}}/{{.PrevMonth}}"
|
||||
hx-target="#timeline-panel"
|
||||
hx-swap="innerHTML"
|
||||
hx-target="#timeline"
|
||||
hx-swap="outerHTML"
|
||||
class="tui-button"
|
||||
aria-label="Previous month">
|
||||
«
|
||||
@@ -12,8 +12,8 @@
|
||||
<span class="timeline-title">{{.MonthName}} {{.Year}}</span>
|
||||
<button
|
||||
hx-get="/timeline/{{.NextYear}}/{{.NextMonth}}"
|
||||
hx-target="#timeline-panel"
|
||||
hx-swap="innerHTML"
|
||||
hx-target="#timeline"
|
||||
hx-swap="outerHTML"
|
||||
class="tui-button"
|
||||
aria-label="Next month">
|
||||
»
|
||||
|
||||
Reference in New Issue
Block a user