--- a/app/views/browse/commit.html.erb
+++ b/app/views/browse/commit.html.erb
@@ -20,8 +20,8 @@
<% @diff.each do |file| -%>
<h4><%= h(file.path) -%><%#=link_to h(file.path), blob_path(file.sha, file.path) -%></h4>
<%= render_diff(file.patch, file.src, file.dst, @diffmode) -%>
- <small><%= link_to_function "toggle raw diff", "$('#{file.id}').toggle()" -%></small>
- <div class="toggle_diff" style="display:none" id="<%= file.id -%>">
+ <small><%= link_to_function "toggle raw diff", "$('#{file.object_id}').toggle()" -%></small>
+ <div class="toggle_diff" style="display:none" id="<%= file.object_id -%>">
<p><pre><%= h(file.patch) -%></pre></p>
</div>
<% end -%> |