Skip to content

Commit

Permalink
Updating bootstrap3-dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivantcholakov committed Jan 25, 2016
1 parent d8bb96f commit 30baaca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
10 changes: 7 additions & 3 deletions www/assets/js/lib/bootstrap3-dialog/bootstrap-dialog.js
Expand Up @@ -309,9 +309,11 @@
BootstrapDialog.moveFocus = function () {
var lastDialogInstance = null;
$.each(BootstrapDialog.dialogs, function (id, dialogInstance) {
lastDialogInstance = dialogInstance;
if (dialogInstance.isRealized() && dialogInstance.isOpened()) {
lastDialogInstance = dialogInstance;
}
});
if (lastDialogInstance !== null && lastDialogInstance.isRealized()) {
if (lastDialogInstance !== null) {
lastDialogInstance.getModal().focus();
}
};
Expand All @@ -335,7 +337,9 @@
var zIndexModal = 1050;
var dialogCount = 0;
$.each(BootstrapDialog.dialogs, function (dialogId, dialogInstance) {
dialogCount++;
if (dialogInstance.isRealized() && dialogInstance.isOpened()) {
dialogCount++;
}
});
var $modal = this.getModal();
var $backdrop = $modal.data('bs.modal').$backdrop;
Expand Down

0 comments on commit 30baaca

Please sign in to comment.