LoginSignup
0
1

More than 3 years have passed since last update.

Redmine view customize プロジェクト識別子による条件分岐

Posted at

パスのパターン /issues
挿入位置 全ページのヘッダ
種別 JavaScript
コメント 新規チケット画面のファイル非表示(複数PJで条件分岐)

$(function() {
  var pid = ViewCustomize.context.project.identifier;
 if (pid == 'プロジェクト識別子1'){
   $('#attachments_form').hide();
   } else if (pid == 'プロジェクト識別子2'){
    $('#attachments_form').hide();
   }
});

プロジェクト識別子の調べ方は
http://(ホーム画面のURL)/projects.xml

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1