Skip to content

Commit

Permalink
Made sure the "Visit on site" link for tabular inlines always opens i…
Browse files Browse the repository at this point in the history
…ts target within a new browser tab or window (thus being not only consistent with similar links elsewhere but also making sure that no pending changes get lost when the user clicks it)
  • Loading branch information
Christian Kesselheim committed Jul 27, 2011
1 parent 31fa6cc commit 4074d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grappelli/templates/admin/edit_inline/tabular.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ <h3 style="display: none;"><b>{{ inline_admin_formset.opts.verbose_name|title }}
<div class="td tools">
{% spaceless %}
<ul class="tools">
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}"> </a></li>{% endif %}
{% if inline_admin_form.show_url %}<li class="viewsite-link-container"><a href="../../../r/{{ inline_admin_form.original_content_type_id }}/{{ inline_admin_form.original.id }}/" class="icon viewsite-link" title="{% trans 'View on Site' %}" target="_blank"> </a></li>{% endif %}
{% if inline_admin_formset.opts.sortable_field_name %}
<li class="drag-handler-container"><a href="javascript://" class="icon drag-handler" title="{% trans 'Move Item' %}"></a></li>
{% endif %}
Expand Down

0 comments on commit 4074d91

Please sign in to comment.