gitlab-org--gitlab-foss/app/views/projects/update.js.haml
2012-11-13 12:36:41 +02:00

8 lines
297 B
Text

- if @project.valid?
:plain
location.href = "#{edit_project_path(@project, notice: 'Project was successfully updated.')}";
- else
:plain
$('.project_edit_holder').show();
$(".edit_project").replaceWith("#{escape_javascript(render('form'))}");
$('.save-project-loader').hide();