function cmsCommentSubmit(that) {
    $.ajax({
            url: $("#comments").data("url")+"/"+$(that).data("pk"),
            type: "PATCH",
            data: {body: $("#edit_body").text()},
            dataType: "json",
            timeout: 5000,
            success: function(data, status, xhr) {
                if (!xhr.responseJSON) {
                    $("#edit_comment").modal("hide");
                    return;
                }
                if (xhr.responseJSON.success !== true || !xhr.responseJSON.msg || !xhr.responseJSON.comment_id || !xhr.responseJSON.comment_ver || !xhr.responseJSON.comment_text) {
                    $("#edit_comment").modal("hide");
                    return;
                }
                $("#comment_"+xhr.responseJSON.comment_id).data("ver", xhr.responseJSON.comment_ver);
                $("#main_comment_"+xhr.responseJSON.comment_id).fadeOut(150, function() {
                    $(this).text(xhr.responseJSON.comment_text);
                    $(this).fadeIn(150, function() {
                        $("#edit_comment").modal("hide");
                    });
                });
            },
            error: function(xhr, status, error) {
                $("#edit_comment").modal("hide");
            }
        });
    });
}

function cmsCommentEditShow(that) {
    $("#edit_comment_ok").data("pk", $(that).data('pk'));
    $("#edit_body").text($("#main_comment_"+$(that).data('pk')).text().replace(/<br\s*[\/]?>/gi, "\n"));
    $("#edit_comment").modal("show");
}

function cmsCommentEdit(bindval) {
    bindval = bindval || ".editable";
    $(bindval).click(function() {
        var that = this;
        var cmsCommentEditCheck = setInterval(function() {
            if (cmsCommentLock == false) {
                clearInterval(cmsCommentEditCheck);
                cmsCommentLock = true;
                cmsCommentEditShow(that);
            }
        }, 10);
        return false;
    });
}

function cmsCommentModel() {
    $("#edit_comment").on("hidden.bs.modal", function () {
        cmsCommentLock = false;
    });
    $("#edit_comment_ok").click(function () {
        var that = this;
        cmsCommentSubmit(that);
    });
}

@@ -48,20 +48,16 @@
         
-    
 url: $(%22
@@ -112,20 +112,16 @@
         
-   
- 
 type: %22P
@@ -127,20 +127,16 @@
 PATCH%22,%0A
-    
         
@@ -177,28 +177,24 @@
 )%7D,%0A        
-  
-  
 dataType: %22j
@@ -207,20 +207,16 @@
         
-    
 timeout:
@@ -230,20 +230,16 @@
         
- 
-   
 success:
@@ -265,28 +265,24 @@
 tus, xhr) %7B%0A
-    
             
@@ -314,36 +314,32 @@
                 
-    
 $(%22#edit_comment
@@ -364,36 +364,32 @@
                 
-    
 return;%0A        
@@ -388,34 +388,26 @@
             
-    %7D%0A    
+%7D%0A
             
@@ -579,36 +579,32 @@
                 
-    
 $(%22#edit_comment
@@ -633,36 +633,32 @@
             
-    
 return;%0A
             
@@ -637,36 +637,32 @@
         return;%0A
-    
             %7D%0A  
@@ -667,28 +667,24 @@
             
-    
 $(%22#comment_
@@ -765,28 +765,24 @@
             
-   
- 
 $(%22#main_com
@@ -851,36 +851,32 @@
                 
-    
 $(this).text(xhr
@@ -912,36 +912,32 @@
                 
-  
-  
 $(this).fadeIn(1
@@ -945,36 +945,32 @@
 0, function() %7B%0A
-    
                 
@@ -1019,36 +1019,28 @@
             
-    %7D);%0A    
+%7D);%0A
             
@@ -1055,19 +1055,11 @@
     
-    %7D,%0A    
+%7D,%0A
     
@@ -1104,36 +1104,32 @@
 ) %7B%0A            
-    
 $(%22#edit_comment
@@ -1158,25 +1158,9 @@
     
-  
-  %7D%0A        %7D);
+%7D
 %0A   

Fix the bad syntax