Skip to content

Commit

Permalink
Merge pull request #769 from LeXofLeviafan/autofocus
Browse files Browse the repository at this point in the history
fix autofocus in tag edit form
  • Loading branch information
jarun authored Aug 25, 2024
2 parents dd370f7 + 5bd65bf commit 2de8f63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bukuserver/templates/bukuserver/tag_edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends 'admin/model/edit.html' %}
{% import 'bukuserver/lib.html' as buku with context %}

{% block tail %}
{{ super() }}
{{ buku.focus() }}
{% endblock %}
1 change: 1 addition & 0 deletions bukuserver/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def _name_formatter(self, _, model, name):
"name": _name_formatter,
}
list_template = 'bukuserver/tags_list.html'
edit_template = "bukuserver/tag_edit.html"
extra_js = ['/static/bukuserver/js/' + it for it in ('page_size.js', 'last_page.js')]
last_page = expose('/last-page')(last_page)

Expand Down

0 comments on commit 2de8f63

Please sign in to comment.