Skip to content

Commit 034fee7

Browse files
committed
Add Popper.js support for Bootstrap 5 in admin scripts
1 parent 4cb0cfe commit 034fee7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

oc-admin/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
osc_register_script('admin-osc', osc_current_admin_theme_js_url('osc.js?v='.OSCLASS_VERSION), 'jquery');
3939
osc_register_script('admin-ui-osc', osc_current_admin_theme_js_url('ui-osc.js?v='.OSCLASS_VERSION), 'jquery-ui');
4040
osc_register_script('admin-location', osc_current_admin_theme_js_url('location.min.js?v='.OSCLASS_VERSION), 'bootstrap5');
41-
osc_register_script('bootstrap5', osc_assets_url('bootstrap/bootstrap.min.js?v='.OSCLASS_VERSION));
41+
osc_register_script('popper', osc_assets_url('popper/popper.min.js?v='.OSCLASS_VERSION));
42+
osc_register_script('bootstrap5', osc_assets_url('bootstrap/bootstrap.min.js?v='.OSCLASS_VERSION), 'popper');
4243
osc_register_script('sortablejs', osc_assets_url('sortablejs/Sortable.min.js?v='.OSCLASS_VERSION));
4344
// enqueue scripts
4445
osc_enqueue_script('bootstrap5');

0 commit comments

Comments
 (0)