// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function quoting(comment_id){
  var author =  jQuery("div#" + comment_id).find("div.comment_author").text();
  var comment = jQuery("div#" + comment_id).find("div.comment_text").html();
  var txt = "> " + author + ":" + "\n" +
  "> " + comment.replace(/<br>/ig,"\n> ").replace(/&gt;/ig,">") + "\n";
  jQuery("#comment_comment").val(txt).focus();
}

