summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/core/dialog.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/dialog.js b/addons/web/static/src/js/core/dialog.js
index 63b33497cd3..94741f98233 100644
--- a/addons/web/static/src/js/core/dialog.js
+++ b/addons/web/static/src/js/core/dialog.js
@@ -30,7 +30,8 @@ var Dialog = Widget.extend({
* @param {Object} [options]
* @param {string} [options.title=Odoo]
* @param {string} [options.subtitle]
- * @param {string} [options.size=large] - 'large', 'medium' or 'small'
+ * @param {string} [options.size=large] - 'extra-large', 'large', 'medium'
+ * or 'small'
* @param {boolean} [options.fullscreen=false] - whether or not the dialog
* should be open in fullscreen mode (the main usecase is mobile)
* @param {string} [options.dialogClass] - class to add to the modal-body
@@ -114,6 +115,9 @@ var Dialog = Widget.extend({
renderFooter: self.renderFooter,
}));
switch (self.size) {
+ case 'extra-large':
+ self.$modal.find('.modal-dialog').addClass('modal-xl');
+ break;
case 'large':
self.$modal.find('.modal-dialog').addClass('modal-lg');
break;