How, if it’s even possible, can I modify the JS used on all pages in RT? I’m toying with the idea of adding notifications, but to do that, I need to have every page use whatever script I come up with. How can I make sure every page in RT loads a custom script? Thanks in advance.
- Create .js file. For example /opt/rt4/local/static/js/my.js and add code you want
- Assign this file to RT in config. Add to RT_SiteConfig.pm
- Clear “cache” rm -fr /opt/rt4/var/mason_data/obj/*
- Restart WebServer (ex. service httpd restart)
Thanks, I’ll give that a shot once I better know how I’ll make notifications work. Are the slashes in your example of setting the JSFiles variable supposed to be there, or were they an accident of the forum text editor?
Slashes must be there
Look at RT_Config.pm
Ah, okay. Thanks. Looks like this project will have to wait a while, as it’s low priority and browser notifications aren’t as standardized as I thought, but it’s good to know how to insert any JS I might need into RT.