BigW Consortium Gitlab

update.js.haml 330 Bytes
Newer Older
1
- if @project.valid?
gitlabhq committed
2
  :plain
Vinnie Okada committed
3
    location.href = "#{edit_namespace_project_path(@project.namespace, @project)}";
gitlabhq committed
4 5
- else
  :plain
6
    $(".project-edit-errors").html("#{escape_javascript(render('errors'))}");
7
    $('.save-project-loader').hide();
8
    $('.project-edit-container').show();
9
    $('.edit-project .btn-save').enable();