From a4ca5cbaefd859bcdb2cddbf9378172874eca146 Mon Sep 17 00:00:00 2001 From: Jack Weeden Date: Tue, 30 Jul 2013 13:05:24 +0100 Subject: [PATCH] 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 --- app/views/projects/create.js.haml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/projects/create.js.haml b/app/views/projects/create.js.haml index 52e61f47283..a444b8b59a6 100644 --- a/app/views/projects/create.js.haml +++ b/app/views/projects/create.js.haml @@ -4,5 +4,6 @@ - else :plain $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); + $('.project-submit').enable(); $('.save-project-loader').hide(); $('.project-edit-container').show();