2011-10-08 21:36:38 +00:00
|
|
|
- if @project.valid?
|
|
|
|
:plain
|
2012-08-10 22:07:50 +00:00
|
|
|
location.href = "#{edit_project_path(@project, notice: 'Project was successfully updated.')}";
|
2011-10-08 21:36:38 +00:00
|
|
|
- else
|
|
|
|
:plain
|
2012-03-26 18:41:58 +00:00
|
|
|
$('.project_edit_holder').show();
|
2011-10-08 21:36:38 +00:00
|
|
|
$(".edit_project").replaceWith("#{escape_javascript(render('form'))}");
|
2012-01-27 22:51:02 +00:00
|
|
|
$('.ajax_loader').hide();
|