BigW Consortium Gitlab

update.js.haml 314 Bytes
Newer Older
gitlabhq committed
1 2
- if @project.valid?
  :plain
3
    location.href = "#{edit_project_path(@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();