gitlabhq/app/views/projects/transfer.js.haml

8 lines
342 B
Text
Raw Normal View History

2013-03-25 09:47:22 +01:00
- if @project.errors[:namespace_id].present?
:plain
$("#tab-transfer .errors-holder").replaceWith(errorMessage('#{escape_javascript(@project.errors[:namespace_id].first)}'));
$("#tab-transfer .form-actions input").removeAttr('disabled').removeClass('disabled');
- else
:plain
location.href = "#{edit_project_path(@project)}";