Skip to content

Commit

Permalink
Fix missing icon for changing position in collection type
Browse files Browse the repository at this point in the history
  • Loading branch information
willemverspyck authored and VincentLanglet committed Aug 27, 2021
1 parent 9b78252 commit 127b3c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ file that was distributed with this source code.
jQuery('div#field_container_{{ id }} tbody.sonata-ba-tbody td.sonata-ba-td-{{ id }}-{{ sonata_admin.field_description.option('sortable') }}').each(function(index, element) {
// remove the sortable handler and put it back
jQuery('span.sonata-ba-sortable-handler', element).remove();
jQuery(element).append('<span class="sonata-ba-sortable-handler ui-icon ui-icon-grip-solid-horizontal"></span>');
jQuery(element).append('<span class="sonata-ba-sortable-handler"><i class="fas fa-grip-lines"></i></span>');
jQuery('input', element).hide();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ file that was distributed with this source code.
var tabs = parent.find('> .nav-tabs');
jQuery('.sonata-ba-sortable-handler', tabs).remove();
$('<li class="sonata-ba-sortable-handler pull-right"></li>')
.prepend('<span class="ui-icon ui-icon-grip-solid-horizontal"></span>')
.prepend('<i class="fas fa-grip-lines"></i>')
.appendTo(tabs);
jQuery('input', element).hide();
});
Expand Down

0 comments on commit 127b3c0

Please sign in to comment.