diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-08-08 13:57:34 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-08-08 13:57:34 +0300 |
commit | 0f77d24be8fd0969528716b84c4909a0efd71255 (patch) | |
tree | 8e8e528f4781e90d5c903dda80ad4ac8d2d2701a /app/views/projects/update.js.haml | |
parent | 6aa56a70270001323f85791aec205cce5558501f (diff) |
Keep project settings sections expanded after submitting form
Diffstat (limited to 'app/views/projects/update.js.haml')
-rw-r--r-- | app/views/projects/update.js.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/update.js.haml b/app/views/projects/update.js.haml index 1a353953838..e8681da6528 100644 --- a/app/views/projects/update.js.haml +++ b/app/views/projects/update.js.haml @@ -1,6 +1,7 @@ - if @project.valid? :plain - location.href = "#{edit_project_path(@project)}"; + location.href = "#{edit_project_path(@project, anchor: params[:update_section])}"; + location.reload(); - else :plain $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); |