diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-05-22 12:07:42 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-27 12:36:54 +0200 |
| commit | b437808f6696a8d202dac079fe8e40ade9779704 (patch) | |
| tree | cf80a2a09296ec9d6ac47db23bf6de0bf6890248 /addons/website_mail | |
| parent | 59237ea81988bdcd0cc746422a7c94bf2eadaaa2 (diff) | |
[REF] *: BS4, adapt input-group structure
The input-group-addon class has been replaced by a combination of the
input-group-text and the input-group-append/prepend classes. The
input-group-btn class is replaced by the input-group-append/prepend
classes.
Diffstat (limited to 'addons/website_mail')
| -rw-r--r-- | addons/website_mail/static/src/js/follow.js | 2 | ||||
| -rw-r--r-- | addons/website_mail/views/website_mail_templates.xml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/website_mail/static/src/js/follow.js b/addons/website_mail/static/src/js/follow.js index 177c5d4768c..b46b9c500f7 100644 --- a/addons/website_mail/static/src/js/follow.js +++ b/addons/website_mail/static/src/js/follow.js @@ -24,7 +24,7 @@ sAnimation.registry.follow = sAnimation.Class.extend({ // not if editable mode to allow designer to edit if (!this.editableMode) { - $('.js_follow > .input-group-btn.d-none').removeClass('d-none'); + $('.js_follow > .input-group-append.d-none').removeClass('d-none'); this.$target.find('.js_follow_btn, .js_unfollow_btn').on('click', function (event) { event.preventDefault(); self._onClick(); diff --git a/addons/website_mail/views/website_mail_templates.xml b/addons/website_mail/views/website_mail_templates.xml index ddc881e012c..df768f003c5 100644 --- a/addons/website_mail/views/website_mail_templates.xml +++ b/addons/website_mail/views/website_mail_templates.xml @@ -10,10 +10,10 @@ class="js_follow_email form-control" placeholder="your email..." groups="base.group_public"/> - <span class="input-group-btn"> + <div class="input-group-append"> <button href="#" t-attf-class="btn btn-secondary js_unfollow_btn">Unsubscribe</button> <button href="#" t-attf-class="btn btn-primary js_follow_btn">Subscribe</button> - </span> + </div> </div> </template> |
