summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2019-07-30 13:15:50 +0000
committerqsm-odoo <qsm@odoo.com>2019-07-30 13:42:09 +0000
commitafb3c28fccd485fe599bcf872a0a44eccadd6199 (patch)
treeff5b3de181032f4a8c28ec74b38e4cdcf8c5aaf9 /addons/web/static/src/js
parenta86795e60e1f137d1657caf4b480dc62d0275800 (diff)
[FIX] web: restore modal backdrops click behavior
Since https://github.com/odoo/odoo/commit/2ad49ec93e39ae5d59ccc17884408870e1c86c5e, all dialogs were able to be closed by clicking on the backdrop which was not a desired behavior. Indeed, the 'backdrop' option of the BS component was misused. closes odoo/odoo#35300 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/core/dialog.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/core/dialog.js b/addons/web/static/src/js/core/dialog.js
index e3101e52bde..63b33497cd3 100644
--- a/addons/web/static/src/js/core/dialog.js
+++ b/addons/web/static/src/js/core/dialog.js
@@ -53,8 +53,8 @@ var Dialog = Widget.extend({
* @param {jQueryElement} [options.$parentNode]
* Element in which dialog will be appended, by default it will be
* in the body
- * @param {boolean} [options.backdrop=true]
- * Whether modal rendered with backdrop or not
+ * @param {boolean|string} [options.backdrop='static']
+ * The kind of modal backdrop to use (see BS documentation)
* @param {boolean} [options.renderHeader=true]
* Whether or not the dialog should be rendered with header
* @param {boolean} [options.renderFooter=true]
@@ -75,7 +75,7 @@ var Dialog = Widget.extend({
buttons: [{text: _t("Ok"), close: true}],
technical: true,
$parentNode: false,
- backdrop: true,
+ backdrop: 'static',
renderHeader: true,
renderFooter: true,
});