diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-03-24 16:53:45 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-03-24 16:53:45 +0100 |
| commit | ddb0fb273982399f7618a017eeb81d6a5253575a (patch) | |
| tree | f62aea4a3888d45e8bfe0f17baeb4ab9d0b47f41 /addons/web/static/src/js/framework/dialog.js | |
| parent | d8137d35b7cc30df258fc310074eca3bfd88ec7a (diff) | |
| parent | 59d3f63c58b47dfc1991494f167216cc1d9a9469 (diff) | |
[MERGE] forward port of branch saas-9 up to 59d3f63
Diffstat (limited to 'addons/web/static/src/js/framework/dialog.js')
| -rw-r--r-- | addons/web/static/src/js/framework/dialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/dialog.js b/addons/web/static/src/js/framework/dialog.js index cbd3baa2a85..f401cf78591 100644 --- a/addons/web/static/src/js/framework/dialog.js +++ b/addons/web/static/src/js/framework/dialog.js @@ -144,7 +144,7 @@ var Dialog = Widget.extend({ this.$modal.remove(); setTimeout(function () { // Keep class modal-open (deleted by bootstrap hide fnct) on body to allow scrolling inside the modal - var modals = $('body > .modal'); + var modals = $('body > .modal').filter(':visible'); if(modals.length) { modals.last().focus(); $('body').addClass('modal-open'); |
