app/assets/javascripts/spree/backend/taxonomy.js.coffee in spree_backend-3.1.14 vs app/assets/javascripts/spree/backend/taxonomy.js.coffee in spree_backend-3.2.0.rc1
- old
+ new
@@ -1,8 +1,8 @@
handle_ajax_error = (XMLHttpRequest, textStatus, errorThrown) ->
$.jstree.rollback(last_rollback)
- $("#ajax_error").show().html("<strong>" + server_error + "</strong><br />" + taxonomy_tree_error)
+ $("#ajax_error").show().html("<strong>" + Spree.translations.server_error + "</strong><br />" + Spree.translations.taxonomy_tree_error)
handle_move = (e, data) ->
last_rollback = data.rlbk
position = data.rslt.cp
node = data.rslt.o
@@ -107,10 +107,10 @@
Spree.url(base_url.path() + '/' + e.prop('id') + '/jstree' + '?token=' + Spree.api_key).toString()
themes:
theme: "spree",
url: Spree.url(Spree.routes.jstree_theme_path)
strings:
- new_node: new_taxon,
+ new_node: Spree.translations.new_taxon,
loading: Spree.translations.loading + "..."
crrm:
move:
check_move: (m) ->
position = m.cp