app/views/spree/admin/shared/_routes.html.erb in spree_backend-2.1.1 vs app/views/spree/admin/shared/_routes.html.erb in spree_backend-2.1.2
- old
+ new
@@ -7,7 +7,8 @@
Spree.routes.option_type_search = "<%= spree.api_option_types_url(:format => 'json') %>";
Spree.routes.orders_api = "<%= spree.api_orders_url(:format => 'json') %>";
Spree.routes.checkouts_api = "<%= spree.api_checkouts_url(:format => 'json') %>";
Spree.routes.stock_locations_api = "<%= spree.api_stock_locations_url(:format => 'json') %>";
Spree.routes.variants_api = "<%= spree.api_variants_url(:format => 'json') %>";
-
+ Spree.routes.payments_api = "<%= spree.api_order_payments_url(:format => 'json') if params[:order_id] %>";
+ Spree.routes.stock_items_api = "<%= spree.api_stock_location_stock_items_url(:format => 'json') if params[:stock_location_id] %>";
</script>