Skip to content

Commit

Permalink
Use generic names for data-* properties in sylius-lazy-choice-tree.js
Browse files Browse the repository at this point in the history
  • Loading branch information
teohhanhui committed Jul 4, 2018
1 parent cd3f918 commit f76c97c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ $.fn.extend({
if (!isLeafLoaded(parentCode)) {
expandButton.api({
on: 'now',
url: tree.data('taxon-leafs-url'),
url: tree.data('tree-leafs-url') || tree.data('taxon-leafs-url'),
method: 'GET',
cache: false,
data: {
Expand Down Expand Up @@ -153,7 +153,7 @@ $.fn.extend({
tree.api({
on: 'now',
method: 'GET',
url: tree.data('taxon-root-nodes-url'),
url: tree.data('tree-root-nodes-url') || tree.data('taxon-root-nodes-url'),
cache: false,
beforeSend(settings) {
loader.addClass('active');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<h4>{{ 'sylius.ui.product_taxon'|trans }}</h4>
<div id="sylius-product-taxonomy-tree"
data-taxon-root-nodes-url="{{ path('sylius_admin_ajax_taxon_root_nodes') }}"
data-taxon-leafs-url="{{ path('sylius_admin_ajax_taxon_leafs') }}"
data-tree-root-nodes-url="{{ path('sylius_admin_ajax_taxon_root_nodes') }}"
data-tree-leafs-url="{{ path('sylius_admin_ajax_taxon_leafs') }}"
>
{{ form_widget(form.productTaxons) }}
<div class="ui inverted dimmer">
Expand Down

0 comments on commit f76c97c

Please sign in to comment.