Skip to content

Commit

Permalink
Limit double-click feature to item view
Browse files Browse the repository at this point in the history
Only activate double-click feature pages with rendered content, not on
meta-pages such as convert, rename etc

fixes #1545
  • Loading branch information
wagner-intevation committed Oct 10, 2023
1 parent d59fad9 commit 7887fa4
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) -%}
{%- if item_name and user.edit_on_doubleclick and user.may.write(item_name) and data_rendered -%}
<br id="moin-edit-on-doubleclick" />
{%- endif %}
{%- if user.show_comments -%}
Expand Down

0 comments on commit 7887fa4

Please sign in to comment.