Skip to content

Commit

Permalink
v4.4.2
Browse files Browse the repository at this point in the history
Thanks to @wladiz2001 for verticalCentered support
#40
  • Loading branch information
GedMarc committed Jan 30, 2022
1 parent 4a89cd9 commit 50db31a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap4-dialog",
"description": "Make use of Bootstrap Modal more monkey-friendly. https://github.com/GedMarc/bootstrap4-dialog",
"version": "4.3.8",
"version": "4.4.2",
"keywords": [
"css",
"js",
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap-dialog.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/js/bootstrap-dialog.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap4-dialog",
"version": "4.4.0",
"version": "4.4.2",
"description": "Make use of Bootstrap Modal more monkey-friendly.",
"directories": {
"example": "examples"
Expand Down
14 changes: 7 additions & 7 deletions src/js/bootstrap-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
animate: true,
description: '',
tabindex: -1,
verticalCentered:false,
verticalCentered:false,
btnsOrder: BootstrapDialog.BUTTONS_ORDER_CANCEL_OK
};

Expand Down Expand Up @@ -801,9 +801,9 @@

return this;
},
getVerticalCentered: function(){
return this.options.verticalCentered;
},
getVerticalCentered: function(){
return this.options.verticalCentered;
},
setVerticalCentered: function (verticalcentered) {
this.options.verticalCentered = verticalCentered;

Expand Down Expand Up @@ -1218,9 +1218,9 @@
this.getModal().attr('aria-describedby', this.getDescription());
}
//this.getModalFooter().append(this.createFooterContent());
if(this.getVerticalCentered()){
this.getModalDialog().addClass('modal-dialog-centered');
}
if(this.getVerticalCentered()){
this.getModalDialog().addClass('modal-dialog-centered');
}
this.getModalHeader().append(this.createHeaderContent());
this.getModalBody().append(this.createBodyContent());
this.getModal().data('bs.modal', new BootstrapDialogModal(this.getModalForBootstrapDialogModal(), { //FIXME for BootstrapV4
Expand Down
1 change: 1 addition & 0 deletions src/js/bootstrap-dialog.min.js

Large diffs are not rendered by default.

0 comments on commit 50db31a

Please sign in to comment.