UNPKG

6.81 kBMarkdownView Raw
1## 5.0.1 (Latest Release)
2
3- Adds Tamil locale
4
5### 5.0.0
6
7- Updates Bootbox to be compatible with both Bootstrap 4 and Bootstrap 3.
8- Pulls button locale options to separate file
9- Corrects Russion locale
10- Changes default button trigger to target the button with the `bootbox-accept` class; this corrects instances where no button has the `btn-primary` class.
11- Various bugfixes
12
13#### Prompt
14
15- Refactors prompt function to use the same dialog factory as alert and confirm
16- Adds new input types for prompt:
17 - `radio`
18 - `range`
19- Adds prompt input constraints for `min`, `max`, `step`, `maxlength`, `pattern`, and `required`
20- Adds `pattern` option for prompt inputs
21- Allows `message` option for prompt
22- Allows `multiple` option for prompt when used with `inputType` set to `select`
23
24#### Dialog options
25
26- Adds `locale` option - allows locale to be set on a dialog-by-dialog basis
27- Adds `swapButtonOrder` option to allow reversing the default button order
28- Adds `centerVertical` option - adds support for vertically-centered dialogs (requires Bootstrap 4)
29
30## 4.4.0
31
32* Allow `backdrop` options of `true` and `false` to dismiss modals
33* Pass dialog as `this` value in callbacks
34* Bootstrap 3.3.2 compatibility
35* jQuery 1.11.2 compatibility
36* Add support for `maxlength` prompt input attribute
37* Gracefully detect lack of Bootstrap library rather than crashing
38* Expose `addLocale` and `removeLocale` for custom locale settings
39* Expose `setLocale` helper to select a locale rather than using `setDefaults("locale", ...)`
40* Add Hungarian locale
41* Add Croatian locale
42* Add Bulgarian locale
43* Add Thai locale
44* Add Persian locale
45* Add Albanian locale
46
47### 4.3.0
48
49* Add `size` option (`large`, `small`)
50* Stop propagation on form submit
51* Return bootbox object from `hideAll`
52* Add Portuguese locale
53* Add Czech locale
54* Add Greek locale
55* Add Estonian locale
56* Add Indonesian locale
57* Add Japanese locale
58
59### 4.2.0
60
61* Add Swedish locale
62* Add Latvian locale
63* Add Turkish locale
64* Add Hebrew locale
65* Add password input type
66* Add textarea input type
67* Add date input type
68* Add time input type
69* Add number input type
70* Support DOM selectors for container argument
71* UMD support
72* Better support on mobile devices
73
74### 4.1.0
75
76* Add support for placeholder attribute in prompts
77* Add select, email and checkbox types for prompts (thanks [@tarlepp](https://github.com/tarlepp))
78* Add Norwegian locale
79* Allow setDefaults to take two key/val arguments
80* Add unique classes for main dialog methods
81* Create bower package
82
83### 4.0.0
84
85* Bootstrap 3.0.0 compatibility
86* Complete rewrite (and new public API)
87* Use strict mode
88* Add close buttons to wrapper methods (GH-92)
89* Allow dialog titles to be specified (GH-51, GH-112)
90* Allow optional extra class on dialog wrapper (GH-116)
91* Fix ```backdrop: true``` not firing close handler (GH-77)
92* Replace various configuration methods with one ```setDefaults```
93
94## 3.3.0
95
96* Add Polish translation (GH-93)
97* Add Danish translation (GH-96)
98* Pass event object to custom callbacks (GH-103)
99* Add Chinese (Taiwan / China) translations (GH-106)
100* Make prompt input block-level (GH-111)
101* Add link: true option to prevent btn class from being applied (GH-114)
102* Prevent child elements triggering hidden callback (GH-115)
103* Replace Phing with Grunt
104* Replace Closure compiler with UglifyJS
105
106### 3.2.0
107
108* ensure ```onEscape``` handlers return callback values properly (GH-91)
109* ensure clicking close button invokes onEscape handler if present
110
111### 3.1.0
112
113* ensure ```confirm``` and ```prompt``` methods return callback values properly (GH-90)
114* address various jshint warnings (GH-79)
115* add ```setBtnClasses``` method for custom standard button classes (GH-87)
116
117### 3.0.0
118
119* bump Bootstrap dependency to 2.2.2
120* bump jQuery dependency to 1.8.3
121* ensure callbacks are always invoked even if dialogs are dismissed with escape key (GH-49)
122* fix button positions with Bootstrap 2.2.2 (GH-58)
123* stop multiple dialogs crashing browsers (GH-60, GH-64)
124* ensure ```shown``` event is fired properly even when animation is disabled (GH-69)
125* use ```.on``` instead of ```.bind```
126* commentify code a bit more
127
128## 2.5.1
129
130**This was the last version of the library to support Bootstrap 2.0.x**
131
132* ensure bootbox object is explicitly added to window object for minfier visibility
133
134### 2.5.0
135
136* add option to specify proper href attributes for buttons instead of callbacks (@StevePotter)
137* add option to override per-modal classes (@ciaranj)
138
139### 2.4.2
140
141* revert ```backdrop``` default value to 'static' instead of ```true``` to prevent background clicks dismissing dialogs (GH-55)
142
143### 2.4.1
144
145* fix ```backdrop``` when supplied as an argument to ```bootbox.dialog```
146* fix incorrect README version
147
148### 2.4.0
149
150* add ```bootbox.backdrop(bool)``` method (@gucki)
151* add default parameter option to ```bootbox.prompt``` (@pzgz)
152
153### 2.3.3
154
155* add inline ```overflow: hidden``` CSS property (GH-46)
156* move license info to separate hosted file to reduce file size
157
158### 2.3.2
159
160* Change button href attributes to ```javascript:;``` (@joshnesbitt)
161* Explicitly ```window.jQuery``` through to ```Bootbox``` object (@nuegon)
162
163
164### 2.3.1
165
166* Ensure bootbox.prompt() gives focus to input, disable input autocomplete
167
168### 2.3.0
169
170* Added bootbox.prompt() to mimic native prompt() method
171* Added Russian locale (#27)
172
173### 2.2.0
174
175* Allowed button callbacks to explicitly return false to prevent dialog from closing (thanks @benoit-ponsero)
176* Added version number to header comments (#26)
177
178### 2.1.2
179
180* Added close button to re-scoped click handler (thanks @SeanMcGee and @kentbrew)
181
182### 2.1.1
183
184* Fixed incorrect button click handler selector (thanks FGRibreau)
185
186### 2.1.0
187
188* Added support for Bootstrap's Glyphicons via the ```icon``` option
189* Added inline license information into bootbox.js and bootbox.min.js
190* Tidied up source a little
191
192### 2.0.1
193
194* Removed dummy Google Closure Compiler method from minified library (thanks j0k3r!)
195
196### 2.0.0
197
198* Updated Bootstrap dependency from 1.4 to 2.0
199* Class definitions now require ```btn-``` prefix as per Bootstrap 2.0
200* Added Brazilian locale
201* Added ```animate``` dialog option
202* Added ```bootbox.animate(bool)``` option to set default animation preference
203* Animated dialogs now rely on ```bootstrap-transitions.js``` as required by Bootstrap 2.0
204
205## 1.1.2
206
207* Added licensing information to README
208
209#### 1.1.1
210* Updated german locale
211
212#### 1.1.0
213* Secondary option of two-button dialog no longer has 'danger' class
214* New bootbox.modal() method for generic non-dialog popups
215* Allow jQuery objects to be passed as main dialog argument
216
\No newline at end of file