Commit a4ca5cbaefd859bcdb2cddbf9378172874eca146

Authored by Jack Weeden
1 parent 8c08fb9b

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
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/views/projects/create.js.haml
... ... @@ -4,5 +4,6 @@
4 4 - else
5 5 :plain
6 6 $(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
  7 + $('.project-submit').enable();
7 8 $('.save-project-loader').hide();
8 9 $('.project-edit-container').show();
... ...