Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
svera committed Nov 26, 2024
1 parent 4dea537 commit d8e4c1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion internal/webserver/embedded/js/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ document.body.addEventListener('htmx:afterRequest', function(evt) {
if (!evt.detail.successful) {
return
}
console.log(evt.detail.elt.parentNode)
evt.detail.elt.parentNode.classList.add("visually-hidden");
if (evt.detail.elt.getAttribute('hx-delete')) {
evt.detail.elt.parentNode.nextElementSibling.classList.remove("visually-hidden");
Expand Down
3 changes: 0 additions & 3 deletions internal/webserver/embedded/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@

</section>
{{template "partials/delete-modal" dict "Lang" .Lang "Action" "/documents" "ModalHeader" "Delete document" "ModalBody" "Are you sure you want to delete this document?" "ModalErrorMessage" "There was an error deleting the document"}}

<script type="text/javascript" src="/js/delete.js"></script>
{{else}}
{{end}}

0 comments on commit d8e4c1b

Please sign in to comment.