Commit 154db88b authored by catch's avatar catch

Issue #2113087 by rteijeiro: Incorrect use of Drupal.displace in comment module.

parent 3fc8919e
......@@ -72,7 +72,7 @@ function processCommentNewIndicators($placeholders) {
// If the URL points to the first new comment, then scroll to that
// comment.
if (window.location.hash === '#new') {
window.scrollTo(0, $comment.offset().top - Drupal.displace().top);
window.scrollTo(0, $comment.offset().top - Drupal.displace.offsets.top);
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment