Skip to content

Commit b6e0fc2

Browse files
committed
Bumps version number to 5.5.3
1 parent 89715ba commit b6e0fc2

9 files changed

+20
-20
lines changed

README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ Please see the [CONTRIBUTING](https://github.com/makeusabrew/bootbox/blob/master
1717

1818
Tests are run using [Karma](http://karma-runner.github.io/0.8/index.html) using the Mocha test adapter.
1919
To run the tests yourself, simply run ```npm install``` within the project followed by ```npm test```.
20-
Please note that this will require [PhantomJS](http://phantomjs.org/) being installed and in your path - if
21-
it is not, you may run the tests and capture browsers manually by running ```karma start``` from the root
22-
of the project.
2320

2421
The project is also hosted on [Travis CI](https://travis-ci.org/makeusabrew/bootbox) - when submitting
2522
pull requests **please** ensure your tests pass as failing requests will be rejected. See the
@@ -35,17 +32,18 @@ Bootbox **3.3.0** is the *last* release to support Bootstrap 2.2.x.
3532

3633
Much more dependency information can be found [on the Bootbox website](http://bootboxjs.com/getting-started.html#bootbox-dependencies).
3734

38-
## 5.5.2 (Latest Release)
35+
## 5.5.3 (Latest Release)
3936

40-
- Adds Vietnamese locale
37+
- Adds `relatedTarget` option. Allows the caller to determine which element, if any, triggered the modal
38+
- Various bugfixes and package updates
4139

4240
For a full list of releases and changes please see [the changelog](https://github.com/makeusabrew/bootbox/blob/master/CHANGELOG.md).
4341

4442
## License
4543

4644
(The MIT License)
4745

48-
Copyright (C) 2011-2020 by Nick Payne <nick@kurai.co.uk>
46+
Copyright (C) 2011-2022 by Nick Payne <nick@kurai.co.uk>
4947

5048
Permission is hereby granted, free of charge, to any person obtaining a copy
5149
of this software and associated documentation files (the "Software"), to deal

bootbox.all.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
var exports = {};
6767

68-
var VERSION = '5.5.2';
68+
var VERSION = '5.5.3';
6969
exports.VERSION = VERSION;
7070

7171
var locales = {
@@ -356,7 +356,9 @@
356356
// Automatically scroll modal content when height exceeds viewport height
357357
scrollable: false,
358358
// whether or not to destroy the modal on hide
359-
reusable: false
359+
reusable: false,
360+
// the element that triggered the dialog opening
361+
relatedTarget: null
360362
};
361363

362364

@@ -705,7 +707,7 @@
705707
});
706708

707709
if (options.show) {
708-
dialog.modal('show');
710+
dialog.modal('show', options.relatedTarget);
709711
}
710712

711713
return dialog;

bootbox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! @preserve
22
* bootbox.js
3-
* version: 5.5.2
3+
* version: 5.5.3
44
* author: Nick Payne <nick@kurai.co.uk>
55
* license: MIT
66
* http://bootboxjs.com/
@@ -65,7 +65,7 @@
6565

6666
var exports = {};
6767

68-
var VERSION = '5.5.2';
68+
var VERSION = '5.5.3';
6969
exports.VERSION = VERSION;
7070

7171
var locales = {

bootbox.locales.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! @preserve
22
* bootbox.locales.js
3-
* version: 5.5.2
3+
* version: 5.5.3
44
* author: Nick Payne <nick@kurai.co.uk>
55
* license: MIT
66
* http://bootboxjs.com/

dist/bootbox.all.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootbox.locales.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bootbox.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

header.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* bootbox.js 5.5.2
2+
* bootbox.js 5.5.3
33
*
44
* http://bootboxjs.com/license.txt
55
*/

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "bootbox",
3-
"version": "5.5.2",
3+
"version": "5.5.3",
44
"description": "Wrappers for JavaScript alert(), confirm(), prompt(), and other flexible dialogs using the Bootstrap framework",
55
"directories": {
66
"test": "tests"
77
},
88
"scripts": {
9-
"test": "./node_modules/.bin/karma start"
9+
"test": "karma start"
1010
},
1111
"repository": {
1212
"type": "git",

0 commit comments

Comments
 (0)