Permalink
Browse files

use spree_dom_id vs dom_id in admin to fix drag and drop sorting

  • Loading branch information...
citrus committed May 11, 2012
1 parent 1f2a912 commit 5c265c702f2d9c819c754051459cdf6b679f772f
@@ -21,7 +21,7 @@
</thead>
<tbody>
<%- @collection.each do |content|%>
- <tr id="<%= dom_id content %>">
+ <tr id="<%= spree_dom_id content %>">
<td><span class="handle">&nbsp;</span>&nbsp; <%= link_to content.title, object_url(content) %></td>
<td><%= content.context %>
<td>
@@ -10,7 +10,7 @@
</thead>
<tbody>
<% @page.images.each do |image| %>
- <tr id="<%= dom_id(image) %>">
+ <tr id="<%= spree_dom_id(image) %>">
<td><span class="handle">&nbsp;</span>&nbsp; <%= link_to(image_tag(image.attachment.url(:mini)), image.attachment.url(:large)) %></td>
<td><%= image.alt %></td>
<td class="actions">
@@ -21,7 +21,7 @@
</thead>
<tbody>
<%- @collection.each do |page|%>
- <tr id="<%= dom_id page %>">
+ <tr id="<%= spree_dom_id page %>">
<td><span class="handle">&nbsp;</span>&nbsp; <%=link_to page.title, object_url(page) %></td>
<td><%= page.path %></td>
<td><%= page.accessible %></td>

0 comments on commit 5c265c7

Please sign in to comment.