2016-07-26 14:27:42 -04:00
|
|
|
- if @project.valid?
|
2011-10-08 17:36:38 -04:00
|
|
|
:plain
|
2018-08-08 06:57:34 -04:00
|
|
|
location.href = "#{edit_project_path(@project, anchor: params[:update_section])}";
|
|
|
|
location.reload();
|
2011-10-08 17:36:38 -04:00
|
|
|
- else
|
|
|
|
:plain
|
2013-05-14 05:46:41 -04:00
|
|
|
$(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
|
2012-11-13 05:36:41 -05:00
|
|
|
$('.save-project-loader').hide();
|
2013-05-14 05:46:41 -04:00
|
|
|
$('.project-edit-container').show();
|
2018-09-18 05:58:22 -04:00
|
|
|
$('.edit-project .js-btn-success-general-project-settings').enable();
|