プロジェクト

全般

プロフィール

Vote #64713

完了

Support for Javascript in Themes

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Themes_38
対象バージョン:
開始日:
2009/02/21
期日:
進捗率:

0%

予定工数:
0.50時間
category_id:
38
version_id:
20
issue_org_id:
2803
author_id:
2738
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Our theme requires Javascript and it seems the only way to include js is via a custom plugin,
which is a bit overkill IMHO.

Someone already wrote a patch http://www.redmine.org/issues/show/1864 so the work to implement
this in the trunk should be limited.


journals

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 #1864 ?
--------------------------------------------------------------------------------
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 (@/javascripts/theme.js@ for example) if it is found in the theme directory.
--------------------------------------------------------------------------------
That solution would be fine.
--------------------------------------------------------------------------------
That solution would be fine for me too. Could that feature be implemented in Redmine 1.0.5?
--------------------------------------------------------------------------------
No features in stable branches but I think I can add this improvement to 1.1.
--------------------------------------------------------------------------------
Feature added in r4558.
Add @javascripts/theme.js@ to your theme directory and it will loaded automatically.
--------------------------------------------------------------------------------


related_issues

relates,Closed,1864,Automatically extend /public with javascripts and images from a theme folder

Admin Redmine さんが約4年前に更新

  • カテゴリThemes_38 にセット
  • 対象バージョン1.1.0_20 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0