Skip to content

Commit

Permalink
Double click: Disable when forms are displayed
Browse files Browse the repository at this point in the history
effectively disables the double click feature on rename and delete
action pages

fixes #1598
  • Loading branch information
sebix committed Feb 11, 2024
1 parent 7792aa9 commit 5591fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moin/templates/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{% endblock %}

{% block options_for_javascript %}
{%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) and data_rendered -%}
{%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) and data_rendered and not form -%}
<br id="moin-edit-on-doubleclick" />
{%- endif %}
{%- if user.show_comments -%}
Expand Down

0 comments on commit 5591fd3

Please sign in to comment.