Commit ba50dad2 authored by Ide Braakman's avatar Ide Braakman
Browse files

Issue #3303854 by idebr, omkar-pd: Remove redundant preventDefault on comment links

parent 6c5fb48b
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -29,20 +29,6 @@
    }
  };

  /**
   * Own Bind Ajax behavior for comment links.
   */
  Drupal.behaviors.ajaxCommentsBehavior = {
    attach: function (context, settings) {
      // Bind Ajax behavior to all items showing the class.
      $('.js-use-ajax-comments', context).once('ajax-comments').each(function () {
        $(this).click(function (e) {
          e.preventDefault();
        });
      });
    }
  };

  /**
   * Override and extend the functionality of Drupal.Ajax.prototype.beforeSerialize.
   */