Permalink
Browse files

Merge pull request #1624 from regismesquita/master

Ajax reordering crashs when default_url_options[:host] is not setted at action controller in production mode.
  • Loading branch information...
2 parents 27286d2 + 26f609b commit 153d9b42a940b0087719160f233eb2f651de6f29 @parndt parndt committed Apr 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/views/refinery/admin/_make_sortable.html.erb
@@ -7,7 +7,7 @@
<% content_for :javascripts do %>
<script>
$(document).ready(function(){
- list_reorder.update_url = '<%= update_url ||= refinery.url_for(:action => "update_positions") %>';
+ list_reorder.update_url = '<%= update_url ||= refinery.url_for(:action => "update_positions", :only_path => true) %>';
list_reorder.sortable_list = $('#<%= list_id ||= "sortable_list" %>, .sortable_list');
list_reorder.tree = <%= tree %>;
list_reorder.init();

0 comments on commit 153d9b4

Please sign in to comment.