summaryrefslogtreecommitdiff
path: root/addons/website_mail
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-03-27 17:17:21 +0100
committerOlivier Dony <odo@openerp.com>2015-03-27 17:23:04 +0100
commit26abbf676dcba5ebebdf4b2912384ea7367e3bf5 (patch)
tree3fb4d0cec576a7d33a5de305ccff4dd87abec9f9 /addons/website_mail
parent62bc5c81232f5baf06276904e77ad1a982fbfa0b (diff)
[FIX] website_mail: remove unused alert div, fixes look of input-group-btn
Bootstrap's CSS depends on the input-group-btn element being the first/last child of its parent. This was not the case because of the invisible and useless alert.
Diffstat (limited to 'addons/website_mail')
-rw-r--r--addons/website_mail/static/src/js/follow.js3
-rw-r--r--addons/website_mail/views/website_mail.xml1
2 files changed, 1 insertions, 3 deletions
diff --git a/addons/website_mail/static/src/js/follow.js b/addons/website_mail/static/src/js/follow.js
index 54b64c949cf..c173f68ecae 100644
--- a/addons/website_mail/static/src/js/follow.js
+++ b/addons/website_mail/static/src/js/follow.js
@@ -19,9 +19,8 @@
self.$target.removeClass("hidden");
});
- // not if editable mode to allow designer to edit alert field
+ // not if editable mode to allow designer to edit
if (!editable_mode) {
- $('.js_follow > .alert').addClass("hidden");
$('.js_follow > .input-group-btn.hidden').removeClass("hidden");
this.$target.find('.js_follow_btn, .js_unfollow_btn').on('click', function (event) {
event.preventDefault();
diff --git a/addons/website_mail/views/website_mail.xml b/addons/website_mail/views/website_mail.xml
index eefe29ebbb4..b8207839b02 100644
--- a/addons/website_mail/views/website_mail.xml
+++ b/addons/website_mail/views/website_mail.xml
@@ -16,7 +16,6 @@
<button href="#" t-attf-class="btn btn-default js_unfollow_btn">Unsubscribe</button>
<button href="#" t-attf-class="btn btn-primary js_follow_btn">Subscribe</button>
</span>
- <div class="alert alert-success hidden">Thanks for your subscription!</div>
</div>
</template>