Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!4Issue #3303854: Remove redundant preventDefault on comment links
...@@ -29,20 +29,6 @@ ...@@ -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. * Override and extend the functionality of Drupal.Ajax.prototype.beforeSerialize.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment