BigW Consortium Gitlab

update.js.haml 338 Bytes
Newer Older
gitlabhq committed
1 2
- if @project.valid?
  :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
    $('.project-edit-content .btn-save').enable();