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 0c6bdb3 commit b06fa53
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 @@ -4,9 +4,9 @@
<%= t(controller.controller_name, :default => controller.controller_name.titleize) %></title>
<%= 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 b06fa53

Please sign in to comment.