Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5c265c702f2d9c819c754051459cdf6b679f772f 1 parent 1f2a912
@citrus citrus authored
View
2  app/views/spree/admin/contents/index.html.erb
@@ -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>
View
2  app/views/spree/admin/page_images/index.html.erb
@@ -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">
View
2  app/views/spree/admin/pages/index.html.erb
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.