app/assets/javascripts/spree/backend/taxonomy.js.coffee in spree_backend-2.2.0 vs app/assets/javascripts/spree/backend/taxonomy.js.coffee in spree_backend-2.2.1
- old
+ new
@@ -72,19 +72,19 @@
if taxonomy_id != undefined
# this is defined within admin/taxonomies/edit
root.base_url = Spree.url(Spree.routes.taxonomy_taxons_path)
$.ajax
- url: base_url.path().replace("/taxons", "/jstree"),
+ url: Spree.url(base_url.path().replace("/taxons", "/jstree")).toString(),
success: (taxonomy) ->
last_rollback = null
conf =
json_data:
data: taxonomy,
ajax:
url: (e) ->
- base_url.path() + '/' + e.prop('id') + '/jstree'
+ Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree').toString()
themes:
theme: "apple",
url: Spree.url(Spree.routes.jstree_theme_path)
strings:
new_node: new_taxon,