Skip to content

Commit

Permalink
ENGCOM-1640: Refactor javascript code of button split widget #15351
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirZaets authored May 22, 2018
2 parents 43e9236 + da14d9c commit 24ae1c7
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 24ae1c7

Please sign in to comment.