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.

CommentFileSizeAuthor
#1 panels-1290302-1.patch469 bytesjmcintyre
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jmcintyre’s picture

Status: Active » Needs review
FileSize
469 bytes

The 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.

dsnopek’s picture

Status: Needs review » Fixed

Committed! Thanks, jmcintyre!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.