Skip to content
A Bootstrap plugin that adds support for multiple open modals.
Branch: master
Clone or download
Latest commit 6a1e2c5 Dec 16, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js Fixes #1 Dec 16, 2015
.gitignore Added .gitignore Dec 10, 2015
LICENSE Initial commit Dec 9, 2015
README.md
bower.json Fixes #1 Dec 16, 2015
package.json Fixes #1 Dec 16, 2015

README.md

bootstrap-multimodal

A Bootstrap plugin that adds support for multiple open modals.

View demo

Install with npm

npm install bootstrap-multimodal

Install with bower

bower install bootstrap-multimodal

Usage

Simply include js/multimodal.js (or the minified version).

That's it! You don't have to make any calls to initiate the behavior.

Override behavior

If you need to override or prevent the behavior on certain modals, add an event listener for the show.bs.modal and hidden.bs.modal events and either return false or call stopPropagation on the event.

$('#my-modal').on('show.bs.modal', function(e) {
    e.stopPropagation();
});

$('#my-modal').on('hidden.bs.modal', function(e) {
    e.stopPropagation();
});
You can’t perform that action at this time.