diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 13:46:41 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-05-14 13:46:41 +0400 |
commit | f59b7409cb653a6e31b5fdc1f45fab211bc3d646 (patch) | |
tree | 9fd026cc5981d4ef3a2052228a143446b348258a /app/views/projects/update.js.haml | |
parent | bbd125915ff90909440675a220a78fd41dfab847 (diff) |
Improve user expirience while create/edit project settings
Diffstat (limited to 'app/views/projects/update.js.haml')
-rw-r--r-- | app/views/projects/update.js.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/update.js.haml b/app/views/projects/update.js.haml index f44ed529182..cbb21f2b9fb 100644 --- a/app/views/projects/update.js.haml +++ b/app/views/projects/update.js.haml @@ -3,6 +3,7 @@ location.href = "#{edit_project_path(@project)}"; - else :plain - $('.project_edit_holder').show(); - $(".edit_project").replaceWith("#{escape_javascript(render('form'))}"); + $(".project-edit-errors").html("#{escape_javascript(render('errors'))}"); $('.save-project-loader').hide(); + $('.project-edit-container').show(); + $('.project-edit-content .btn-save').enableButton(); |