Use TransferContext for project

This commit is contained in:
Dmitriy Zaporozhets 2013-03-25 10:47:22 +02:00
parent 850881a2ef
commit 1fb99264a9
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,7 @@
- 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)}";