Commit e22e8356da660e31ed282ea6f1557b089222a8b7

Authored by Leandro Nunes dos Santos
1 parent b725adee

fixing comment edition colorbox

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 <% focus_on = logged_in? ? 'title' : 'name' %> 4 <% focus_on = logged_in? ? 'title' : 'name' %>
4 5
5 -<% edition_mode = (defined? edition_mode) ? edition_mode : false %>  
6 <div class="post_comment_box <%= ((defined? show_form) && show_form) ? 'opened' : 'closed' %>"> 6 <div class="post_comment_box <%= ((defined? show_form) && show_form) ? 'opened' : 'closed' %>">
7 7
8 <% if display_link %> 8 <% if display_link %>
public/javascripts/application.js
@@ -760,6 +760,7 @@ function save_comment(button) { @@ -760,6 +760,7 @@ function save_comment(button) {
760 //Comment of reply 760 //Comment of reply
761 $('#'+ data.render_target).replaceWith(data.html); 761 $('#'+ data.render_target).replaceWith(data.html);
762 $('#' + data.render_target).effect("highlight", {}, 3000); 762 $('#' + data.render_target).effect("highlight", {}, 3000);
  763 + $.colorbox.close();
763 764
764 } else { 765 } else {
765 //New comment of article 766 //New comment of article