diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-11-28 11:32:20 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-11-28 14:28:40 +0100 |
| commit | 41d2470093a5e18ecebc86f2f878813f1879462d (patch) | |
| tree | 3d50132a006b2a46607e325bac841d9c2bb985b3 /addons/web/static/src/js/core/misc.js | |
| parent | ecbf7aa4714479229658d14cce28fa00376ed390 (diff) | |
[FIX] mail: properly suggest users to chat with
Before this commit, it was not possible to choose the user you want to
chat with in a chat window anymore. This was because the dropdown that
suggest the users appeared under the chat windows since commit
https://github.com/odoo/odoo/commit/7b965a9673a9124e6e045b8a290a156eed402ad5
Indeed, the mentioned commit changed the z-indexes so that chat windows
are still usable when a modal is opened. This was done by making the
chat windows always have the greatest z-index... forgetting this would
make them appear on top of their own autocomplete dropdowns.
This commit restores the feature while keeping the ability to talk while
a modal is opened. See code comments for details.
opw-785162
Diffstat (limited to 'addons/web/static/src/js/core/misc.js')
| -rw-r--r-- | addons/web/static/src/js/core/misc.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/core/misc.js b/addons/web/static/src/js/core/misc.js index 983b26d3606..99c21c14038 100644 --- a/addons/web/static/src/js/core/misc.js +++ b/addons/web/static/src/js/core/misc.js @@ -59,12 +59,14 @@ function blockUI() { var throbber = new Throbber(); throbbers.push(throbber); throbber.appendTo($(".oe_blockui_spin_container")); + $(document.body).addClass('o_ui_blocked'); return tmp; } function unblockUI() { _.invoke(throbbers, 'destroy'); throbbers = []; + $(document.body).removeClass('o_ui_blocked'); return $.unblockUI.apply($, arguments); } |
