Move front-end assets to be compatible with GLPI 11.0

This commit is contained in:
Cédric Anne
2024-12-03 14:43:53 +01:00
parent 115c355eb2
commit 478423a03b
5 changed files with 38 additions and 4 deletions

View File

@ -177,8 +177,9 @@ function plugin_init_example() {
$PLUGIN_HOOKS['assign_to_ticket']['example'] = 1;
// Add specific files to add to the header : javascript or css
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['example'] = 'example.js';
$PLUGIN_HOOKS[Hooks::ADD_CSS]['example'] = 'example.css';
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['example'] = 'js/example.js';
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT_MODULE]['example'] = 'js/modules/mymodule.js';
$PLUGIN_HOOKS[Hooks::ADD_CSS]['example'] = 'css/example.css';
// Add specific tags to the header
$PLUGIN_HOOKS[Hooks::ADD_HEADER_TAG]['example'] = [