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

10 lines
300 B
Text
Raw Normal View History

- if @project.valid?
2011-10-08 17:36:38 -04:00
:plain
location.href = "#{edit_project_path(@project)}";
2011-10-08 17:36:38 -04:00
- else
:plain
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
$('.save-project-loader').hide();
$('.project-edit-container').show();
$('.edit-project .btn-save').enable();