Skip to content

Commit 02453f6

Browse files
amittiwari024vijay-wagento
authored andcommitted
Refactor javascript code of button split widget
1 parent 6103b6b commit 02453f6

File tree

1 file changed

+7
-7
lines changed
  • app/code/Magento/Backend/view/adminhtml/templates/widget/button

1 file changed

+7
-7
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
<?php endif; ?>
4242
</div>
4343

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

0 commit comments

Comments
 (0)