adding a custom.js to bug_view_inc.php

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
gkeepa
Posts: 8
Joined: 14 May 2019, 15:45

adding a custom.js to bug_view_inc.php

Post by gkeepa »

hi all, i would like to add a custom.js and css to my custom field, such that the field highlight green when it's yes and red when it's no. it works when i include echo '<script src="js/custom.js"></script>'; on the bug_view_inc.php. however, i want to put this setting in config_inc.php with $g_custom_headers[] = '<script src="js/custom.js"></script>'; but it's not loading my js nor css, what am i doing wrong, or how to achieve this? thanks in advance
Post Reply