Commit ae36749e authored by Phil Hughes's avatar Phil Hughes

Fixed issue with issues-feature not hiding on setting update

parent 816f8fe1
......@@ -10,9 +10,10 @@ class @ProjectNew
toggleSettings: =>
@_showOrHide('#project_builds_enabled', '.builds-feature')
@_showOrHide('#project_merge_requests_enabled', '.merge-requests-feature')
@_showOrHide('#project_issues_enabled', '.issues-feature')
toggleSettingsOnclick: ->
$('#project_builds_enabled, #project_merge_requests_enabled').on 'click', @toggleSettings
$('#project_builds_enabled, #project_merge_requests_enabled, #project_issues_enabled').on 'click', @toggleSettings
_showOrHide: (checkElement, container) ->
$container = $(container)
......
......@@ -85,9 +85,7 @@
%span.descr Enable Container Registry for this repository
%hr
= render 'issues_settings', f: f
%hr
= render 'merge_request_settings', f: f
%hr
= render 'builds_settings', f: f
%hr
%fieldset.features.append-bottom-default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment