diff options
author | skv-headless <skv-headless@yandex.ru> | 2014-12-15 16:10:56 +0300 |
---|---|---|
committer | skv-headless <skv-headless@yandex.ru> | 2014-12-15 16:10:56 +0300 |
commit | c4a56797a4c3a818c0ac6e57e2ea3acb76f3f1eb (patch) | |
tree | d087c4584a4b3dbb8f5482cc83772f0c74047ba0 /app/views/projects/transfer.js.haml | |
parent | 19865b7cfd4d081f6bee6e973858ee488e995561 (diff) |
transfer error handler
Diffstat (limited to 'app/views/projects/transfer.js.haml')
-rw-r--r-- | app/views/projects/transfer.js.haml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/projects/transfer.js.haml b/app/views/projects/transfer.js.haml index 10b0de98c04..6d083c5c516 100644 --- a/app/views/projects/transfer.js.haml +++ b/app/views/projects/transfer.js.haml @@ -1,7 +1,2 @@ -- 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 +:plain location.href = "#{edit_project_path(@project)}"; |