- Removes various IE polyfills
- Replaces
var
withlet
- JSDoc cleanup
- Adds code to handle cases when click starts on the modal body and ends on the backdrop and
backdrop
is set totrue
bootbox.locale.js
andbootbox.all.js
are now generated files and will be found in the/dist
directory- Simplify locale file structure
- Changed a few locale identifiers to match IANA specifications:
bg_BG
->bg-BG
pt-br
->pt-BR
zh_CN
->zh-CN
zh_TW
->zh-CW
- Adds Vietnamese locale
- Adds
reusable
option, 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
, andonHidden
events, which map to their Bootstrap modal equivalents.
- Removes
':first'
selector from default button binding
- Fixes incorrect value validation for the
step
option when settinginputType
tonumber
for 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 #705
- Adds Swahili (sw) locale.
- Adds
bootbox.all.js
tosrc
directory as a temporary work-around for incorrectly-built concatenated file
- Adds
rows
as a prompt option when settinginputType
totextarea
.
- Adds
scrollable
option, which enables the scrollable modal content added in Bootstrap 4.3 - Adds
extra-large
as 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-accept
class; this corrects instances where no button has thebtn-primary
class. - Various bugfixes
- Refactors prompt function to use the same dialog factory as alert and confirm
- Adds new input types for prompt:
radio
range
- Adds prompt input constraints for
min
,max
,step
,maxlength
,pattern
, andrequired
- Adds
pattern
option for prompt inputs - Allows
message
option for prompt - Allows
multiple
option for prompt when used withinputType
set toselect
- Adds
locale
option - allows locale to be set on a dialog-by-dialog basis - Adds
swapButtonOrder
option to allow reversing the default button order - Adds
centerVertical
option - adds support for vertically-centered dialogs (requires Bootstrap 4)
- Allow
backdrop
options oftrue
andfalse
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
andremoveLocale
for custom locale settings - Expose
setLocale
helper 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
size
option (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: true
not 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
onEscape
handlers return callback values properly (GH-91) - ensure clicking close button invokes onEscape handler if present
- ensure
confirm
andprompt
methods return callback values properly (GH-90) - address various jshint warnings (GH-79)
- add
setBtnClasses
method 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
shown
event is fired properly even when animation is disabled (GH-69) - use
.on
instead 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
backdrop
default value to 'static' instead oftrue
to prevent background clicks dismissing dialogs (GH-55)
- fix
backdrop
when 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: hidden
CSS property (GH-46) - move license info to separate hosted file to reduce file size
- Change button href attributes to
javascript:;
(@joshnesbitt) - Explicitly
window.jQuery
through toBootbox
object (@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
icon
option - 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
animate
dialog option - Added
bootbox.animate(bool)
option to set default animation preference - Animated dialogs now rely on
bootstrap-transitions.js
as 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