diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-10-15 10:12:19 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-10-16 15:52:01 +0200 |
| commit | 6b2250b2d24e15a730ca9a16ec92086abde576a9 (patch) | |
| tree | bc44f33e40bbbcbd8459e78a8f1c7c1770c0b048 /addons/mail/static/src | |
| parent | b8badd6263b95689ab8b594a03ca72699996d114 (diff) | |
[FIX] mail: font-family of notification counter in systray
On firefox, the font-family of the counter was font-awesome instead of Roboto
because the counter was inside the <i> tag on which font-awesome rules applied.
This rev. simply moves the counter out of that <i> tag.
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/js/systray.js | 2 | ||||
| -rw-r--r-- | addons/mail/static/src/xml/systray.xml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/js/systray.js b/addons/mail/static/src/js/systray.js index 8deb1ac24a0..83ac8cb3dd7 100644 --- a/addons/mail/static/src/js/systray.js +++ b/addons/mail/static/src/js/systray.js @@ -36,7 +36,7 @@ var NotificationTopButton = Widget.extend({ return this._super(); }, update_counter: function (counter) { - this.$('.fa-comment').html(counter); + this.$('.o_notification_counter').html(counter); }, on_click: function (event) { var self = this; diff --git a/addons/mail/static/src/xml/systray.xml b/addons/mail/static/src/xml/systray.xml index 5f355d88969..58a735e80c5 100644 --- a/addons/mail/static/src/xml/systray.xml +++ b/addons/mail/static/src/xml/systray.xml @@ -11,7 +11,7 @@ <t t-name="mail.chat.NotificationTopButton"> <li t-att-title='_t("Notifications")'> <a href="#"> - <i class="fa fa-comment"/> <t t-esc="widget.get('counter') || ''"/> + <i class="fa fa-comment"/> <span class="o_notification_counter"/> </a> </li> </t> |
