Skip to content

Commit

Permalink
Refactor javascript code of button split widget
Browse files Browse the repository at this point in the history
  • Loading branch information
amittiwari024 authored and vijay-wagento committed Jun 4, 2018
1 parent 943e2cd commit eaa585d
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<?php endif; ?>
</div>

<script>
require(['jquery'], function($){
$('.actions-split')
.on('click.splitDefault', '.action-default', function() {
$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
});
});
<script type="text/x-magento-init">
{
".actions-split": {
"Magento_Ui/js/grid/controls/button/split": {}
}
}
</script>

0 comments on commit eaa585d

Please sign in to comment.