BigW Consortium Gitlab

update.js.haml 344 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 9
    $('.project-edit-container').show();
    $('.project-edit-content .btn-save').enableButton();