Use Spree Taxon Controller instead of API Taxon Controller

This commit is contained in:
Neal Chambers
2023-03-06 15:07:52 +09:00
parent 60bea89f5c
commit 63ba3defec

View File

@@ -8,7 +8,7 @@ handle_move = (e, data) ->
node = data.rslt.o
new_parent = data.rslt.np
url = new URL(base_url)
url = new URL(Spree.routes.admin_taxonomy_taxons)
url.pathname = url.pathname + '/' + node.attr("id")
data = {
_method: "put",