bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
The current version has a bug where calling the public close() function does not call the onClose callback function. Added functionality to the public close() function so that the onClose callback function is called.
The current version has a bug where calling the public close() function does not call the onClose callback function. Added functionality to the public close() function so that the onClose callback function is called.