Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/js/bootstrap-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* ================================================ */
var Modal = bootstrap.Modal ? bootstrap.Modal : $.fn.modal.Constructor;
var BootstrapDialogModal = function (element, options) {
if(bootstrap && bootstrap.Modal && /^5\.1\./.test(bootstrap.Modal.VERSION)) {
if(bootstrap && bootstrap.Modal && /^5\.[^\D0]\./.test(bootstrap.Modal.VERSION)) {
return new Modal(element, options);
} else if(bootstrap && bootstrap.Modal && /^5\.0\.2/.test(bootstrap.Modal.VERSION)) {
return new Modal(element, options);
Expand All @@ -52,7 +52,7 @@
};
BootstrapDialogModal.getModalVersion = function () {
var version = null;
if(bootstrap && bootstrap.Modal && /^5\.1\./.test(bootstrap.Modal.VERSION)) {
if(bootstrap && bootstrap.Modal && /^5\.[^\D0]\./.test(bootstrap.Modal.VERSION)) {
version = 'v5.1';
//not compatible with 5.0.1, regex upper bounds would have been better
} else if(bootstrap && bootstrap.Modal && /^5\.0\.[23456789]/.test(bootstrap.Modal.VERSION)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/bootstrap-dialog.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/bootstrap-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* ================================================ */
var Modal = bootstrap.Modal ? bootstrap.Modal : $.fn.modal.Constructor;
var BootstrapDialogModal = function (element, options) {
if(bootstrap && bootstrap.Modal && /^5\.1\./.test(bootstrap.Modal.VERSION)) {
if(bootstrap && bootstrap.Modal && /^5\.[^\D0]\./.test(bootstrap.Modal.VERSION)) {
return new Modal(element, options);
} else if(bootstrap && bootstrap.Modal && /^5\.0\.2/.test(bootstrap.Modal.VERSION)) {
return new Modal(element, options);
Expand All @@ -52,7 +52,7 @@
};
BootstrapDialogModal.getModalVersion = function () {
var version = null;
if(bootstrap && bootstrap.Modal && /^5\.1\./.test(bootstrap.Modal.VERSION)) {
if(bootstrap && bootstrap.Modal && /^5\.[^\D0]\./.test(bootstrap.Modal.VERSION)) {
version = 'v5.1';
//not compatible with 5.0.1, regex upper bounds would have been better
} else if(bootstrap && bootstrap.Modal && /^5\.0\.[23456789]/.test(bootstrap.Modal.VERSION)) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/bootstrap-dialog.min.js

Large diffs are not rendered by default.