diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-28 17:02:20 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-28 17:02:20 +0200 |
| commit | e1f77b9be071fac9f57e85b2f3853d2f333aeaab (patch) | |
| tree | 41ba8089e2ba4f4d2a0c615c6292cc1b03358ef2 /app/assets/javascripts/projects.js.coffee | |
| parent | d452ffc2d08d82c4eab32fa8e65839cf13f85c4c (diff) | |
| parent | 1dab19d0d7b25cb5af27b8d10c8b615b2d38c2cf (diff) | |
| download | gitlab-ce-e1f77b9be071fac9f57e85b2f3853d2f333aeaab.tar.gz | |
Merge branch 'link-to-issue-tracker' of https://github.com/Undev/gitlabhq into Undev-link-to-issue-tracker
Conflicts:
Gemfile.lock
Diffstat (limited to 'app/assets/javascripts/projects.js.coffee')
| -rw-r--r-- | app/assets/javascripts/projects.js.coffee | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/projects.js.coffee b/app/assets/javascripts/projects.js.coffee index d03a487c453..24106c61b75 100644 --- a/app/assets/javascripts/projects.js.coffee +++ b/app/assets/javascripts/projects.js.coffee @@ -18,3 +18,18 @@ $ -> # Ref switcher $('.project-refs-select').on 'change', -> $(@).parents('form').submit() + + $('#project_issues_enabled').change -> + if ($(this).is(':checked') == true) + $('#project_issues_tracker').removeAttr('disabled') + else + $('#project_issues_tracker').attr('disabled', 'disabled') + + $('#project_issues_tracker').change() + + $('#project_issues_tracker').change -> + if ($(this).val() == gon.default_issues_tracker || $(this).is(':disabled')) + $('#project_issues_tracker_id').attr('disabled', 'disabled') + else + $('#project_issues_tracker_id').removeAttr('disabled') + |
