Permalink
Browse files

Changing Admin AJAX urls in the _head partial to use relative paths. #…

  • Loading branch information...
1 parent 2db1929 commit 0e86ce576b7abb5f7e53362679bb2ae61de38bfd @jumph4x jumph4x committed with radar May 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 core/app/views/spree/admin/shared/_head.html.erb
View
6 core/app/views/spree/admin/shared/_head.html.erb
@@ -5,9 +5,9 @@
<%= javascript_tag do %>
ajax_urls = <%== {
- :product_search_json => spree.admin_products_url(:format => 'json'),
- :product_search_basic_json => spree.admin_products_url(:format => 'json', :json_format => 'basic', :limit => 10),
- :user_search_basic_json => spree.admin_users_url(:format => 'json', :json_format => 'basic', :limit => 10)
+ :product_search_json => spree.admin_products_path(:format => 'json'),
+ :product_search_basic_json => spree.admin_products_path(:format => 'json', :json_format => 'basic', :limit => 10),
+ :user_search_basic_json => spree.admin_users_path(:format => 'json', :json_format => 'basic', :limit => 10)
}.to_json %>;
strings = <%==

0 comments on commit 0e86ce5

Please sign in to comment.