- Removes various IE polyfills
- Replaces
varwithlet - JSDoc cleanup
- Adds code to handle cases when click starts on the modal body and ends on the backdrop and
backdropis set totrue bootbox.locale.jsandbootbox.all.jsare now generated files and will be found in the/distdirectory- Simplify locale file structure
- Changed a few locale identifiers to match IANA specifications:
bg_BG->bg-BGpt-br->pt-BRzh_CN->zh-CNzh_TW->zh-CW
- Adds Vietnamese locale
- Adds
reusableoption, which allows an instance of a Bootbox modal to be reused.
- Updates to how backdrop is handled. Fixes #766.
- Adds function hooks for
onShow,onShown,onHide, andonHiddenevents, which map to their Bootstrap modal equivalents.
- Removes
':first'selector from default button binding
- Fixes incorrect value validation for the
stepoption when settinginputTypetonumberfor a prompt.
- Adds Georgian (ka) locale.
- Moves development (unminified) versions of Bootbox files back to repository root (to simplify getting CDNjs updated).
- Modifies dialog to only process button callback if it has been defined; see bootboxjs#705
- Adds Swahili (sw) locale.
- Adds
bootbox.all.jstosrcdirectory as a temporary work-around for incorrectly-built concatenated file
- Adds
rowsas a prompt option when settinginputTypetotextarea.
- Adds
scrollableoption, which enables the scrollable modal content added in Bootstrap 4.3 - Adds
extra-largeas a size option - Adds aliased/alternative keys for all size options:
sm,lg,xl
- Adds Tamil (ta) locale
- Updates Bootbox to be compatible with both Bootstrap 4 and Bootstrap 3.
- Pulls button locale options to separate file
- Corrects Russion locale
- Changes default button trigger to target the button with the
bootbox-acceptclass; this corrects instances where no button has thebtn-primaryclass. - Various bugfixes
- Refactors prompt function to use the same dialog factory as alert and confirm
- Adds new input types for prompt:
radiorange
- Adds prompt input constraints for
min,max,step,maxlength,pattern, andrequired - Adds
patternoption for prompt inputs - Allows
messageoption for prompt - Allows
multipleoption for prompt when used withinputTypeset toselect
- Adds
localeoption - allows locale to be set on a dialog-by-dialog basis - Adds
swapButtonOrderoption to allow reversing the default button order - Adds
centerVerticaloption - adds support for vertically-centered dialogs (requires Bootstrap 4)
- Allow
backdropoptions oftrueandfalseto dismiss modals - Pass dialog as
thisvalue in callbacks - Bootstrap 3.3.2 compatibility
- jQuery 1.11.2 compatibility
- Add support for
maxlengthprompt input attribute - Gracefully detect lack of Bootstrap library rather than crashing
- Expose
addLocaleandremoveLocalefor custom locale settings - Expose
setLocalehelper to select a locale rather than usingsetDefaults("locale", ...) - Add Hungarian locale
- Add Croatian locale
- Add Bulgarian locale
- Add Thai locale
- Add Persian locale
- Add Albanian locale
- Add
sizeoption (large,small) - Stop propagation on form submit
- Return bootbox object from
hideAll - Add Portuguese locale
- Add Czech locale
- Add Greek locale
- Add Estonian locale
- Add Indonesian locale
- Add Japanese locale
- Add Swedish locale
- Add Latvian locale
- Add Turkish locale
- Add Hebrew locale
- Add password input type
- Add textarea input type
- Add date input type
- Add time input type
- Add number input type
- Support DOM selectors for container argument
- UMD support
- Better support on mobile devices
- Add support for placeholder attribute in prompts
- Add select, email and checkbox types for prompts (thanks @tarlepp)
- Add Norwegian locale
- Allow setDefaults to take two key/val arguments
- Add unique classes for main dialog methods
- Create bower package
- Bootstrap 3.0.0 compatibility
- Complete rewrite (and new public API)
- Use strict mode
- Add close buttons to wrapper methods (GH-92)
- Allow dialog titles to be specified (GH-51, GH-112)
- Allow optional extra class on dialog wrapper (GH-116)
- Fix
backdrop: truenot firing close handler (GH-77) - Replace various configuration methods with one
setDefaults
- Add Polish translation (GH-93)
- Add Danish translation (GH-96)
- Pass event object to custom callbacks (GH-103)
- Add Chinese (Taiwan / China) translations (GH-106)
- Make prompt input block-level (GH-111)
- Add link: true option to prevent btn class from being applied (GH-114)
- Prevent child elements triggering hidden callback (GH-115)
- Replace Phing with Grunt
- Replace Closure compiler with UglifyJS
- ensure
onEscapehandlers return callback values properly (GH-91) - ensure clicking close button invokes onEscape handler if present
- ensure
confirmandpromptmethods return callback values properly (GH-90) - address various jshint warnings (GH-79)
- add
setBtnClassesmethod for custom standard button classes (GH-87)
- bump Bootstrap dependency to 2.2.2
- bump jQuery dependency to 1.8.3
- ensure callbacks are always invoked even if dialogs are dismissed with escape key (GH-49)
- fix button positions with Bootstrap 2.2.2 (GH-58)
- stop multiple dialogs crashing browsers (GH-60, GH-64)
- ensure
shownevent is fired properly even when animation is disabled (GH-69) - use
.oninstead of.bind - commentify code a bit more
This was the last version of the library to support Bootstrap 2.0.x
- ensure bootbox object is explicitly added to window object for minfier visibility
- add option to specify proper href attributes for buttons instead of callbacks (@StevePotter)
- add option to override per-modal classes (@ciaranj)
- revert
backdropdefault value to 'static' instead oftrueto prevent background clicks dismissing dialogs (GH-55)
- fix
backdropwhen supplied as an argument tobootbox.dialog - fix incorrect README version
- add
bootbox.backdrop(bool)method (@gucki) - add default parameter option to
bootbox.prompt(@pzgz)
- add inline
overflow: hiddenCSS property (GH-46) - move license info to separate hosted file to reduce file size
- Change button href attributes to
javascript:;(@joshnesbitt) - Explicitly
window.jQuerythrough toBootboxobject (@nuegon)
- Ensure bootbox.prompt() gives focus to input, disable input autocomplete
- Added bootbox.prompt() to mimic native prompt() method
- Added Russian locale (#27)
- Allowed button callbacks to explicitly return false to prevent dialog from closing (thanks @benoit-ponsero)
- Added version number to header comments (#26)
- Added close button to re-scoped click handler (thanks @SeanMcGee and @kentbrew)
- Fixed incorrect button click handler selector (thanks FGRibreau)
- Added support for Bootstrap's Glyphicons via the
iconoption - Added inline license information into bootbox.js and bootbox.min.js
- Tidied up source a little
- Removed dummy Google Closure Compiler method from minified library (thanks j0k3r!)
- Updated Bootstrap dependency from 1.4 to 2.0
- Class definitions now require
btn-prefix as per Bootstrap 2.0 - Added Brazilian locale
- Added
animatedialog option - Added
bootbox.animate(bool)option to set default animation preference - Animated dialogs now rely on
bootstrap-transitions.jsas required by Bootstrap 2.0
- Added licensing information to README
- Updated german locale
- Secondary option of two-button dialog no longer has 'danger' class
- New bootbox.modal() method for generic non-dialog popups
- Allow jQuery objects to be passed as main dialog argument