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 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
... ...