Skip to content

Commit

Permalink
ルーティングでurlを生成するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed Oct 11, 2022
1 parent de8f63a commit 11136df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Eccube/Resource/template/admin/Product/category.twig
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ file that was distributed with this source code.
});
groupItem.on('click', 'button.action-edit-cancel', function(e) {
location.href = window.location.href;
location.href = "{% if TargetCategory.id %}{{ url('admin_product_category_edit', {id: TargetCategory.id}) }}{% elseif Parent %}{{ url('admin_product_category_show', {'parent_id': Parent.id}) }}{% else %}{{ url('admin_product_category') }}{% endif %}";
});
groupItem.find('.is-invalid').each(function(e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ file that was distributed with this source code.
current.find('.mode-edit').removeClass('d-none');
});
sortable.on('click', 'button.action-edit-cancel', function(e) {
location.href = window.location.href;
location.href = "{{ url('admin_product_class_category', {'class_name_id': ClassName.id}) }}";
});
sortable.find('.is-invalid').each(function(e) {
var current = $(this).parents('li');
Expand Down

0 comments on commit 11136df

Please sign in to comment.