Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
// Bind a click for closing the megarow.
57 $('.close', megarow).bind('click', { entityId: entityId }, function(event) {
58 Drupal.ViewsMegarow.close(event.data.entityId);
59 });
60 };
Change the above line to this one. This will prevent the the browser to scroll to the top while clicking the CROSS link.
// Bind a click for closing the megarow.
57 $('.close', megarow).bind('click', { entityId: entityId }, function(event) {
58 event.preventDefault();
59 Drupal.ViewsMegarow.close(event.data.entityId);
60 });
61 };
Comments
Comment #1
ArtusamakHi, thanks for reporting but it's a duplicate of #1788236: Should not jump to top of page when closing a views megarow, fixed in http://drupalcode.org/project/views_megarow.git/commitdiff/45b8fe60d4e87...
Comment #2
denny84 CreditAttribution: denny84 commentedAah, my bad.