8c5b79a923
When projects were created in projects_controller create.js.haml passed notice as url parameter and therefore notice was not displayed in the page after redirect to the project page
12 lines
330 B
Plaintext
12 lines
330 B
Plaintext
- if @project.saved?
|
|
:plain
|
|
location.href = "#{project_path(@project)}";
|
|
- else
|
|
- if @project.git_error?
|
|
location.href = "#{errors_githost_path}";
|
|
-else
|
|
:plain
|
|
$('.project_new_holder').show();
|
|
$("#new_project").replaceWith("#{escape_javascript(render('new_form'))}");
|
|
$('.save-project-loader').hide();
|