https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-12-19T13:04:20ZRedmineRedmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=233112010-12-19T13:04:20ZRuben Kruiswijk
<ul></ul><p>What is the status about this issue? I think it would be very valuable to add javascript support on themes. Are there problems in integrating the patch in issue <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: Automatically extend /public with javascripts and images from a theme folder (Closed)" href="https://www.redmine.org/issues/1864">#1864</a> ?</p> Redmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=233402010-12-20T22:54:11ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Unlike CSS, I don't think it makes sense to let themes override the core application.js (any change to that file would break the compatibility with the theme). Instead, we could automatically load a given script (<code>/javascripts/theme.js</code> for example) if it is found in the theme directory.</p> Redmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=233412010-12-21T01:09:41ZLeonard Brünings
<ul></ul><p>That solution would be fine.</p> Redmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=233872010-12-22T08:44:04ZRuben Kruiswijk
<ul></ul><p>That solution would be fine for me too. Could that feature be implemented in Redmine 1.0.5?</p> Redmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=233922010-12-22T20:21:34ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Themes</i></li><li><strong>Target version</strong> set to <i>1.1.0</i></li></ul><p>No features in stable branches but I think I can add this improvement to 1.1.</p> Redmine - Feature #2803: Support for Javascript in Themeshttps://www.redmine.org/issues/2803?journal_id=234012010-12-22T21:43:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Feature added in <a class="changeset" title="Support for Javascript in Themes (#2803). If javascripts/theme.js is found in the theme director..." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/4558">r4558</a>.<br />Add <code>javascripts/theme.js</code> to your theme directory and it will loaded automatically.</p>