Commit e22e8356da660e31ed282ea6f1557b089222a8b7
1 parent
b725adee
Exists in
master
and in
29 other branches
fixing comment edition colorbox
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
app/views/comment/_comment_form.rhtml
1 | -<div class="page-comment-form"> | |
1 | +<% edition_mode = (defined? edition_mode) ? edition_mode : false %> | |
2 | +<div class="<%= edition_mode ? '' : 'page-comment-form' %>"> | |
2 | 3 | |
3 | 4 | <% focus_on = logged_in? ? 'title' : 'name' %> |
4 | 5 | |
5 | -<% edition_mode = (defined? edition_mode) ? edition_mode : false %> | |
6 | 6 | <div class="post_comment_box <%= ((defined? show_form) && show_form) ? 'opened' : 'closed' %>"> |
7 | 7 | |
8 | 8 | <% if display_link %> | ... | ... |
public/javascripts/application.js
... | ... | @@ -760,6 +760,7 @@ function save_comment(button) { |
760 | 760 | //Comment of reply |
761 | 761 | $('#'+ data.render_target).replaceWith(data.html); |
762 | 762 | $('#' + data.render_target).effect("highlight", {}, 3000); |
763 | + $.colorbox.close(); | |
763 | 764 | |
764 | 765 | } else { |
765 | 766 | //New comment of article | ... | ... |