summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-07-08 12:55:18 +0000
committerVictor Feyens <vfe@odoo.com>2019-08-07 12:50:09 +0000
commit56aab8bc1195efbdf6d12e773126f5f802be9b7d (patch)
tree5a381cb885b69e1377a1a10e8abed9584156f1e9 /addons
parent1514cd0b68ee3b15341581fb1e8b04058b128064 (diff)
[IMP] web/dialog.js : support xl dialog modal size.
Diffstat (limited to 'addons')
-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;