diff options
| author | Rohan Patel <rop@odoo.com> | 2016-08-29 18:32:42 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-09-16 11:44:31 +0200 |
| commit | 5814b0fc45d1167cdc1780184c42b2800dfa8b67 (patch) | |
| tree | ced3d30e3eb75dd25beb346f83201e1f7b855e40 /addons/pad/static/src/js | |
| parent | a44e49cba7d25bbb046e3d1e04285ad22aa1dd9b (diff) | |
[IMP] pad: Use standard full screen icon and add tooltips
replace the icon for fullscreen by the same one used on YouTube (or a similar one) + add tooltip 'Full Screen' and 'Exit Full Screen'
Diffstat (limited to 'addons/pad/static/src/js')
| -rw-r--r-- | addons/pad/static/src/js/pad.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/pad/static/src/js/pad.js b/addons/pad/static/src/js/pad.js index dffd5c12967..f254bbc9032 100644 --- a/addons/pad/static/src/js/pad.js +++ b/addons/pad/static/src/js/pad.js @@ -23,7 +23,9 @@ var FieldPad = form_common.AbstractField.extend(form_common.ReinitializeWidgetMi var self = this; this.$('.oe_pad_switch').click(function() { self.$el.toggleClass('oe_pad_fullscreen'); - self.$el.find('.oe_pad_switch').toggleClass('fa-expand fa-compress'); + var pad_switch = self.$el.find('.oe_pad_switch').toggleClass('fa-arrows-alt fa-compress'); + var title = pad_switch.hasClass('fa-compress') ? _t('Exit full screen') : _t('Full screen'); + pad_switch.attr('title', title); self.view.$el.find('.oe_chatter').toggle(); $('#oe_main_menu_navbar').toggle(); }); |
