From e22e8356da660e31ed282ea6f1557b089222a8b7 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 12 Mar 2013 18:35:09 -0300 Subject: [PATCH] fixing comment edition colorbox --- app/views/comment/_comment_form.rhtml | 4 ++-- public/javascripts/application.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/comment/_comment_form.rhtml b/app/views/comment/_comment_form.rhtml index 7ddd655..96bb539 100644 --- a/app/views/comment/_comment_form.rhtml +++ b/app/views/comment/_comment_form.rhtml @@ -1,8 +1,8 @@ -
+<% edition_mode = (defined? edition_mode) ? edition_mode : false %> +
<% focus_on = logged_in? ? 'title' : 'name' %> -<% edition_mode = (defined? edition_mode) ? edition_mode : false %>
<% if display_link %> diff --git a/public/javascripts/application.js b/public/javascripts/application.js index eea2773..1478ff0 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -760,6 +760,7 @@ function save_comment(button) { //Comment of reply $('#'+ data.render_target).replaceWith(data.html); $('#' + data.render_target).effect("highlight", {}, 3000); + $.colorbox.close(); } else { //New comment of article -- libgit2 0.21.2