I'm still having trouble implementing javascript.
/opt/otrs/var/httpd/htdocs/js/thirdparty/Customization/test.js:
Code: Select all
$( document ).ready(function() {
alert( "ready!" );
});
/opt/otrs/Kernel/Config/Files/Customization.xml:
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<otrs_config version="1.0" init="Framework">
<ConfigItem Name="Loader::Agent::CommonJS###110-Customization" Required="1" Valid="1">
<Description Translatable="1">List of JS files for package "Customization".</Description>
<Group>Framework</Group>
<SubGroup>Core::Web</SubGroup>
<Navigation>Frontend::Base::Loader</Navigation>
<Setting>
<Array>
<Item>thirdparty/Customization/test.js</Item>
</Array>
</Setting>
</ConfigItem>
<ConfigItem Name="Loader::Customer::CommonJS###110-Customization" Required="1" Valid="1">
<Description Translatable="1">List of JS files for package "Customization".</Description>
<Group>Framework</Group>
<SubGroup>Core::Web</SubGroup>
<Navigation>Frontend::Base::Loader</Navigation>
<Setting>
<Array>
<Item>thirdparty/Customization/test.js</Item>
</Array>
</Setting>
</ConfigItem>
</otrs_config>
This is just an example but the javascript file isn't embedded into OTRS, so isn't the alert box.
I restarted the webserver and otrs.Daemon.pl, plus ran otrs.setPermissions.pl.
Are there any additional steps I'm missing? Do I have to register the Customization.xml or recreate the cache?