Wrappers for JavaScript alert(), confirm() and other flexible dialogs using the Bootstrap framework
npm install bootbox-jeremyeditnpm install` within the project followed by `npm test`.
Please note that this will require PhantomJS being installed and in your path - if
it is not, you may run the tests and capture browsers manually by running `karma start` from the root
of the project.
The project is also hosted on Travis CI - when submitting
pull requests please ensure your tests pass as failing requests will be rejected. See the
CONTRIBUTING file for more information.
Building a minified release
The repository no longer contains a minified bootbox.min.js file - this is now only generated
for releases. To build your own minified copy
for use in development simply run `npm install` if you haven't already, followed by `grunt uglify`.
This will generate a bootbox.min.js file in your working directory.
A note on Bootstrap dependencies
Bootbox 4.0.0 is the first release to support Bootstrap 3.0.0.
Bootbox 3.3.0 is the last release to support Bootstrap 2.2.x.
Much more dependency information can be found on the Bootbox website.
$3
The latest major release of Bootbox - 4.0.0 - involved a total rewrite of the
internal code and introduced an entirely new public API. It has not re-implemented
some functionality from the 3.x series as of yet; this will be addressed in the
form of new minor releases. Please feel free to add feedback and requests.
There is a partial roadmap for the next major release (5.x). Subject to change at any time. The primary goal will be Bootstrap 4 compatibility, which is still a moving target at the moment. If you would like to contribute to the next version of Bootbox, please work from the v5.x branch when forking the repository.
$3
* Allow backdrop options of true and false to dismiss modals
* Pass dialog as this value in callbacks
* Bootstrap 3.3.2 compatibility
* jQuery 1.11.2 compatibility
* Add support for maxlength prompt input attribute
* Gracefully detect lack of Bootstrap library rather than crashing
* Expose addLocale and removeLocale for custom locale settings
* Expose setLocale helper to select a locale rather than using setDefaults("locale", ...)`