Skip to content

Commit

Permalink
Merge pull request #17 from jogibear9988/patch-2
Browse files Browse the repository at this point in the history
Configurable Z-Index for Dialogs
  • Loading branch information
GedMarc authored Dec 5, 2019
2 parents b12f601 + 9b0ed0d commit 982f236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/bootstrap-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@
BootstrapDialog.ICON_SPINNER = 'glyphicon glyphicon-asterisk';
BootstrapDialog.BUTTONS_ORDER_CANCEL_OK = 'btns-order-cancel-ok';
BootstrapDialog.BUTTONS_ORDER_OK_CANCEL = 'btns-order-ok-cancel';
BootstrapDialog.Z_INDEX_BACKDROP = 1040;
BootstrapDialog.Z_INDEX_MODAL = 1050;

/**
* Default options.
Expand Down Expand Up @@ -346,8 +348,8 @@
*/
updateZIndex: function () {
if (this.isOpened()) {
var zIndexBackdrop = 1040;
var zIndexModal = 1050;
var zIndexBackdrop = BootstrapDialog.Z_INDEX_BACKDROP;
var zIndexModal = BootstrapDialog.Z_INDEX_MODAL;
var dialogCount = 0;
$.each(BootstrapDialog.dialogs, function (dialogId, dialogInstance) {
if (dialogInstance.isRealized() && dialogInstance.isOpened()) {
Expand Down

0 comments on commit 982f236

Please sign in to comment.