# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/ajax_comments/ajax_comments.js
--- contributions/modules/ajax_comments/ajax_comments.js Base (1.1.2.37)
+++ contributions/modules/ajax_comments/ajax_comments.js Locally Modified (Based On 1.1.2.37)
@@ -82,7 +82,7 @@
     }
     
     // Attaching event to title link
-    $('#comment-form-title:not(.ajax-comments-processed)', context).addClass('ajax-comments-processed').click(reply_click);
+    $('#comment-form-title:not(.ajax-comments-processed)', context).addClass('ajax-comments-processed').click(ajax_comments_reply_click);
     //moving preview in a proper place
     $('#comment-form-content').parents('.box').before($('#comment-preview'));
     if (!$('#comment-form-content').attr('cid')) {
@@ -92,7 +92,7 @@
     if(typeof(fix_control_size)!='undefined'){ fix_control_size(); }
   });
   
-  $('.comment_reply a:not(.ajax-comments-processed)', context).addClass('ajax-comments-processed').click(reply_click);
+  $('.comment_reply a:not(.ajax-comments-processed)', context).addClass('ajax-comments-processed').click(ajax_comments_reply_click);
   $('.quote a:not(.ajax-comments-processed)', context).addClass('ajax-comments-processed').each(function(){
     href = $(this).attr('href');
     if (ajax_comments_is_reply_to_node(href)) {
@@ -101,12 +101,12 @@
         ajax_comments_reload_form(0);
 
         $('#comment-form-title', context).click();
-        scroll_to_comment_form();
+        ajax_comments_scroll_to_comment_form();
         return false;
       });
     }
     else {
-      $(this).click(reply_click);
+      $(this).click(ajax_comments_reply_click);
     }
   });
   
@@ -114,7 +114,7 @@
   $('.comment_delete a:not(.ajax-comments-processed)', context).each(function (){
     href = $(this).attr('href');
     if (href.indexOf('token=') > -1) {
-      $(this).addClass('ajax-comments-processed').click(delete_click);
+      $(this).addClass('ajax-comments-processed').click(ajax_comments_delete_click);
     }
   });
 
@@ -132,7 +132,7 @@
 };
 
 // Reply link handler
-function reply_click() {
+function ajax_comments_reply_click() {
   // We should only handle non presed links
   if (!$(this).is('.pressed')){
     action = $(this).attr('href');
@@ -177,7 +177,7 @@
         ajax_comments_reload_form(link_cid);
       }
       else {
-        initForm(link_cid, rows);
+        ajax_comments_init_form(link_cid, rows);
       }
     }
     // ...and show the form after everything is done
@@ -204,7 +204,7 @@
 }
 
 // Helper fnction for reply handler
-function initForm(pid, rows){
+function ajax_comments_init_form(pid, rows){
   // resizing and clearing textarea
   $('#comment-form textarea').attr('rows', rows);
   $('#comment-form:not(.fresh) textarea').attr('value','');
@@ -235,7 +235,7 @@
 
 
 // delete links handler
-function delete_click() {
+function ajax_comments_delete_click() {
   if ((ctrl) || (confirm(Drupal.t('Are you sure you want to delete the comment? Any replies to this comment will be lost. This action cannot be undone.')))) {
     // taking link's href as AJAX url
     comment = $(this).parents(commentbox);
@@ -325,7 +325,7 @@
       $('#comment-form').addClass('fresh');
 
       Drupal.attachBehaviors($('#comment-form-content form'));
-      initForm(pid, rows);
+      ajax_comments_init_form(pid, rows);
       ajax_comments_hide_progress();
 
       $('#comment-form').removeClass('fresh');
@@ -333,7 +333,7 @@
   });
 }
 
-function scroll_to_comment_form() {
+function ajax_comments_scroll_to_comment_form() {
   if ($.browser.msie) {
     height = document.documentElement.offsetHeight ;
   }
@@ -377,7 +377,7 @@
     $('#comment-preview').slideUp(speed, function(){ $(this).empty(); });
     
     // place new comment in proper place
-    insert_new_comment(obj);
+    ajax_comments_insert_new_comment(obj);
 
     // at last - showing it up
     obj.animate({height:'show', opacity:'show'}, speed, function () {
@@ -417,7 +417,7 @@
 };
 
 
-function insert_new_comment(comment) {
+function ajax_comments_insert_new_comment(comment) {
   if ($('#comment-form-content').attr('cid') == 0) {
     $('#comment-preview').before(comment);
   }
@@ -486,10 +486,8 @@
   }
 }
 
-
-
 function ajax_comments_get_cid_from_href(action) {
-  args = get_args(action);
+  args = ajax_comments_get_args(action);
 
   // getting token params (/comment/delete/!cid!)
   if (args[1] == 'delete') {
@@ -508,12 +506,12 @@
 }
 
 function ajax_comments_is_reply_to_node(href) {
-  args = get_args(href);
+  args = ajax_comments_get_args(href);
   result = args[1] == 'reply' && args[2] && (typeof(args[3]) == 'undefined');
   return result;
 }
 
-function get_args(url) {
+function ajax_comments_get_args(url) {
   if (Drupal.settings.clean_url == '1') {
     var regexS = "(http(s)*:\/\/)*([^/]*)"+ Drupal.settings.basePath +"([^?#]*)";
     var regex = new RegExp( regexS );
@@ -546,6 +544,7 @@
     $('#comment-form', context).append('<div class="ajax-comments-loader"></div>');
   }
 }
+
 function ajax_comments_hide_progress(context) {
   if (!context) {
     context = '#comment-form-content';
