summaryrefslogtreecommitdiff
path: root/addons/website_mail/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-04-24 17:15:00 +0200
committerqsm-odoo <qsm@odoo.com>2018-07-27 12:36:54 +0200
commit7f10b55a5035bd3cab48ba58a519510a25b94f60 (patch)
treef7ef8d3ddec1c419d82dfe2eef3c00fff9b15cdd /addons/website_mail/static/src
parentea7c3f4a698bd027c307aef89fa2974916c4b9f5 (diff)
[REF] *: BS4, adapt display classes
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
Diffstat (limited to 'addons/website_mail/static/src')
-rw-r--r--addons/website_mail/static/src/js/follow.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/website_mail/static/src/js/follow.js b/addons/website_mail/static/src/js/follow.js
index 0f9c3a193d6..177c5d4768c 100644
--- a/addons/website_mail/static/src/js/follow.js
+++ b/addons/website_mail/static/src/js/follow.js
@@ -19,12 +19,12 @@ sAnimation.registry.follow = sAnimation.Class.extend({
self.is_user = data.is_user;
self.email = data.email;
self.toggle_subscription(data.is_follower, data.email);
- self.$target.removeClass("hidden");
+ self.$target.removeClass('d-none');
});
// not if editable mode to allow designer to edit
if (!this.editableMode) {
- $('.js_follow > .input-group-btn.hidden').removeClass("hidden");
+ $('.js_follow > .input-group-btn.d-none').removeClass('d-none');
this.$target.find('.js_follow_btn, .js_unfollow_btn').on('click', function (event) {
event.preventDefault();
self._onClick();
@@ -60,12 +60,12 @@ sAnimation.registry.follow = sAnimation.Class.extend({
toggle_subscription: function (follow, email) {
follow = follow || (!email && this.$target.attr('data-unsubscribe'));
if (follow) {
- this.$target.find(".js_follow_btn").addClass("hidden");
- this.$target.find(".js_unfollow_btn").removeClass("hidden");
+ this.$target.find(".js_follow_btn").addClass('d-none');
+ this.$target.find(".js_unfollow_btn").removeClass('d-none');
}
else {
- this.$target.find(".js_follow_btn").removeClass("hidden");
- this.$target.find(".js_unfollow_btn").addClass("hidden");
+ this.$target.find(".js_follow_btn").removeClass('d-none');
+ this.$target.find(".js_unfollow_btn").addClass('d-none');
}
this.$target.find('input.js_follow_email')
.val(email || "")