summaryrefslogtreecommitdiff
path: root/app/views/projects/update.js.haml
blob: c5eecc900b2bc4a901b780f36bbd7d816c5315ae (plain)
1
2
3
4
5
6
7
8
9
10
- if @project.valid?
  :plain
    location.href = "#{edit_project_path(@project, anchor: params[:update_section])}";
    location.reload();
- else
  :plain
    $(".flash-container").html("#{escape_javascript(render('errors'))}");
    $('.save-project-loader').hide();
    $('.project-edit-container').show();
    $('.edit-project .js-btn-success-general-project-settings').enable();