use document.referrer instead of history.length (#13697)

Contributed by Filou Centrinov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11900 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2013-05-24 07:21:56 +00:00
parent 54478d1e08
commit 1e18c23095
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<p>
<%= link_to(l(:button_back), issue_path(@issue),
:onclick => 'if (history.length > 1) {history.back(); return false;}') %>
:onclick => 'if (document.referrer != "") {history.back(); return false;}') %>
</p>
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>