76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
9 lines
344 B
Text
9 lines
344 B
Text
- if @project.valid?
|
|
:plain
|
|
location.href = "#{edit_namespace_project_path(@project.namespace, @project)}";
|
|
- else
|
|
:plain
|
|
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
|
|
$('.save-project-loader').hide();
|
|
$('.project-edit-container').show();
|
|
$('.project-edit-content .btn-save').enableButton();
|