Skip to content

Commit

Permalink
Changing Admin AJAX urls in the _head partial to use relative paths. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jumph4x authored and radar committed May 10, 2012
1 parent e87b9ec commit d2077a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/app/views/spree/admin/shared/_head.html.erb
Expand Up @@ -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 = <%==
Expand Down

0 comments on commit d2077a8

Please sign in to comment.