diff --git a/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_list.html b/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_list.html index 9a385e8b..2de63e49 100644 --- a/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_list.html +++ b/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_list.html @@ -185,7 +185,7 @@ if (tmp_lgr) { let url = '{% url "delete_lgr" lgr_pk=42 %}'.replace('42', tmp_lgr); $.ajax({ - type: "GET", + type: "POST", url: url }); } diff --git a/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_view.html b/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_view.html index 692b8eec..7f7889a6 100644 --- a/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_view.html +++ b/src/lgr_advanced/lgr_editor/templates/lgr_editor/codepoint_view.html @@ -8,6 +8,10 @@ .tag-field .control-label { width: 100%; } + .btn-link:hover { + text-decoration: none; + color: #333; + } {% endblock %} @@ -94,7 +98,17 @@

Variants

{% if not is_set %} @@ -156,10 +170,15 @@

References

{% if not is_set %}
- - - {% trans 'Delete code point' %} +
+ {% csrf_token %} + +
{% endif %}