gitlab-org--gitlab-foss/app/views/projects/create.js.haml
Jack Weeden a4ca5cbaef Reenable the create project button after errors
Currently if you try to create a project from an existing repo but give it a bad
URL, you see the "Import url should be a valid url" error and the form, but the
submit button is disabled meaning you can't fix the URL and resubmit the form.
This fix just enables the button when the project has an error.

Closes #4070
2013-07-30 13:45:53 +01:00

9 lines
287 B
Text

- if @project.saved?
:plain
location.href = "#{project_path(@project)}";
- else
:plain
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
$('.project-submit').enable();
$('.save-project-loader').hide();
$('.project-edit-container').show();