public/javascripts/comment_form.js
Function save_comment
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function save_comment(button) {
var $ = jQuery;
var $button = $(button);
var form = $button.parents("form");
var post_comment_box = $button.parents('.post_comment_box');