-
Notifications
You must be signed in to change notification settings - Fork 118
Adding new JS file to EE Combo Loader
Andy Mc edited this page Jun 24, 2021
·
1 revision
To add a new JS file to the EE CP combo loader:
- Edit
/system/ee/legacy/libraries/Cp.php
- Locate
$js_scripts
array inset_default_view_variables()
- Add array element (Ex:
'cp/fuzzy_filters', 'cp/jump_menu',
)
Additions to this array are loaded from this location:
/themes/ee/cp/js/build/[cp]/[jump_menu.js]
The [cp]
and [jump_menu.js]
correspond to the cp/jump_menu
segments in the $js_scripts
array.
NOTE: Place your source files as per Location & File Explanation and run the build system.