##// END OF EJS Templates
fix back-button on description diff page in case of no browser history (#13697)...
Toshi MARUYAMA -
r11663:83d148242a57
parent child
Show More
@@ -5,6 +5,9
5 <%= simple_format_without_paragraph @diff.to_html %>
5 <%= simple_format_without_paragraph @diff.to_html %>
6 </div>
6 </div>
7
7
8 <p><%= link_to l(:button_back), issue_path(@issue), :onclick => 'history.back(); return false;' %></p>
8 <p>
9 <%= link_to(l(:button_back), issue_path(@issue),
10 :onclick => 'if (history.length > 1) {history.back(); return false;}') %>
11 </p>
9
12
10 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
13 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
General Comments 0
You need to be logged in to leave comments. Login now