-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumps version number. Fixes unit tests. Moves backdrop fix - was inserted between the button validation.
- Loading branch information
Showing
13 changed files
with
530 additions
and
875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
(The MIT License) | ||
|
||
Copyright (C) 2011-2019 by Nick Payne <[email protected]> | ||
Copyright (C) 2011-2020 by Nick Payne <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! @preserve | ||
* bootbox.js | ||
* version: 5.4.0 | ||
* version: 5.4.1 | ||
* author: Nick Payne <[email protected]> | ||
* license: MIT | ||
* http://bootboxjs.com/ | ||
|
@@ -1259,6 +1259,13 @@ | |
// make sure any supplied options take precedence over defaults | ||
options = $.extend({}, defaults, options); | ||
|
||
//make sure backdrop is either true, false, or 'static' | ||
if (!options.backdrop) { | ||
options.backdrop = (options.backdrop === false || options.backdrop === 0) ? false : 'static'; | ||
} else { | ||
options.backdrop = typeof options.backdrop === 'string' && options.backdrop.toLowerCase() === 'static' ? 'static' : true; | ||
} | ||
|
||
// no buttons is still a valid dialog but it's cleaner to always have | ||
// a buttons object to iterate over, even if it's empty | ||
if (!options.buttons) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! @preserve | ||
* bootbox.js | ||
* version: 5.4.0 | ||
* version: 5.4.1 | ||
* author: Nick Payne <[email protected]> | ||
* license: MIT | ||
* http://bootboxjs.com/ | ||
|
@@ -1064,17 +1064,18 @@ | |
// make sure any supplied options take precedence over defaults | ||
options = $.extend({}, defaults, options); | ||
|
||
// no buttons is still a valid dialog but it's cleaner to always have | ||
// a buttons object to iterate over, even if it's empty | ||
if (!options.buttons) { | ||
options.buttons = {}; | ||
} | ||
//make sure backdrop is either true/false/static | ||
//make sure backdrop is either true, false, or 'static' | ||
if (!options.backdrop) { | ||
options.backdrop = (options.backdrop === false || options.backdrop === 0) ? false : 'static'; | ||
} else { | ||
options.backdrop = typeof options.backdrop === 'string' && options.backdrop.toLowerCase() === 'static' ? 'static' : true; | ||
} | ||
|
||
// no buttons is still a valid dialog but it's cleaner to always have | ||
// a buttons object to iterate over, even if it's empty | ||
if (!options.buttons) { | ||
options.buttons = {}; | ||
} | ||
|
||
buttons = options.buttons; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*! @preserve | ||
* bootbox.locales.js | ||
* version: 5.4.0 | ||
* version: 5.4.1 | ||
* author: Nick Payne <[email protected]> | ||
* license: MIT | ||
* http://bootboxjs.com/ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* bootbox.js 5.4.0 | ||
* bootbox.js 5.4.1 | ||
* | ||
* http://bootboxjs.com/license.txt | ||
*/ |
Oops, something went wrong.