summaryrefslogtreecommitdiffstats
path: root/app/views/journals
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-24 07:21:56 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-05-24 07:21:56 +0000
commit1e18c2309544f5f44001ba44d2761a81ced0ddfb (patch)
tree07ebd9b1bffb301e939e55d81e4f24649415d778 /app/views/journals
parent54478d1e08f773527bdeaea99f33b7eee406f62e (diff)
downloadredmine-1e18c2309544f5f44001ba44d2761a81ced0ddfb.tar.gz
redmine-1e18c2309544f5f44001ba44d2761a81ced0ddfb.zip
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
Diffstat (limited to 'app/views/journals')
-rw-r--r--app/views/journals/diff.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/journals/diff.html.erb b/app/views/journals/diff.html.erb
index ac17e090a..d28ee0f71 100644
--- a/app/views/journals/diff.html.erb
+++ b/app/views/journals/diff.html.erb
@@ -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}" %>