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.
When the Admin Message block is placed in a Panels pane, the page reloads when messages' "Close" links are clicked.
The "Close" link is designed to use AJAX to submit the callback that saves the user's choice. When the Admin Message block is in a Panels Pane, the DOM id of the block is determined by Panels, and jQuery won't find the block to assign the AJAX actions to the links.
Comment | File | Size | Author |
---|---|---|---|
#1 | panels-1290302-1.patch | 469 bytes | jmcintyre |
Comments
Comment #1
jmcintyre CreditAttribution: jmcintyre commentedThe attached patch changes the class selector used by the jQuery function to "admin-message", which allows the function to find "close" links regardless of the block's DOM id.
Comment #2
dsnopekCommitted! Thanks, jmcintyre!