summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core/misc.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src/js/core/misc.js')
-rw-r--r--addons/web/static/src/js/core/misc.js2
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);
}