diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-07-16 16:48:59 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-27 12:36:54 +0200 |
| commit | c59380bac5bbd47bc7dcd92b38049af29a62c3d1 (patch) | |
| tree | d7d2597657a11138e243f228ebef98cd4ffc4cf6 /addons/web/static/src/js/core/dom.js | |
| parent | 81f359c81c69af2a5ec0645602e2bb43b2e16721 (diff) | |
[REF] *: BS4, rename btn-default to btn-secondary
BS4 "btn-default" class was replaced with "btn-secondary", which makes
more sense.
Diffstat (limited to 'addons/web/static/src/js/core/dom.js')
| -rw-r--r-- | addons/web/static/src/js/core/dom.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/core/dom.js b/addons/web/static/src/js/core/dom.js index 81f5bfec5c0..ba3eebf9bea 100644 --- a/addons/web/static/src/js/core/dom.js +++ b/addons/web/static/src/js/core/dom.js @@ -208,7 +208,7 @@ return { * @param {Object} options * @param {Object} [options.attrs] - Attributes to put on the button element * @param {string} [options.attrs.type='button'] - * @param {string} [options.attrs.class='btn-default'] + * @param {string} [options.attrs.class='btn-secondary'] * Note: automatically completed with "btn btn-X" * (@see options.size for the value of X) * @param {string} [options.size] - @see options.attrs.class @@ -237,7 +237,7 @@ return { if (options.size) { jQueryParams.class += (' btn-' + options.size); } - jQueryParams.class += (' ' + (extraClasses || 'btn-default')); + jQueryParams.class += (' ' + (extraClasses || 'btn-secondary')); var $button = $('<button/>', jQueryParams); |
