summaryrefslogtreecommitdiff
path: root/app/views/projects/update.js.haml
blob: e8681da6528eb33de832796ae03dffc86204e797 (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
    $(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
    $('.save-project-loader').hide();
    $('.project-edit-container').show();
    $('.edit-project .js-btn-save-general-project-settings').enable();