gitlab-org--gitlab-foss/app/views/projects/update.js.haml

11 lines
383 B
Text
Raw Normal View History

- if @project.valid?
2011-10-08 17:36:38 -04:00
:plain
location.href = "#{edit_project_path(@project, anchor: params[:update_section])}";
location.reload();
2011-10-08 17:36:38 -04:00
- else
:plain
$(".flash-container").html("#{escape_javascript(render('errors'))}");
$('.save-project-loader').hide();
$('.project-edit-container').show();
$('.edit-project .js-btn-success-general-project-settings').enable();