Commit b5438d9c authored by Dave Reid's avatar Dave Reid Committed by merlinofchaos

Issue #1347578 by Dave Reid: Allow modal to have other close buttons inside the modal.

parent 3d17339b
......@@ -252,6 +252,14 @@
}
});
// Bind a click handler to allow elements with the 'ctools-close-modal'
// class to close the modal.
$('.ctools-close-modal:not(.ctools-close-modal-processed)', context)
.addClass('ctools-close-modal-processed')
.click(function() {
Drupal.CTools.Modal.dismiss();
return false;
});
};
// The following are implementations of AJAX responder commands.
......
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