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 | |
| 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')
| -rw-r--r-- | addons/pad/static/src/js/pad.js | 4 | ||||
| -rw-r--r-- | addons/pad/static/src/xml/pad.xml | 2 |
2 files changed, 4 insertions, 2 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(); }); diff --git a/addons/pad/static/src/xml/pad.xml b/addons/pad/static/src/xml/pad.xml index 4b7372f9906..c6108aab464 100644 --- a/addons/pad/static/src/xml/pad.xml +++ b/addons/pad/static/src/xml/pad.xml @@ -11,7 +11,7 @@ </t> <t t-if="! widget.get('effective_readonly')"> <div class="oe_pad_switch_positioner oe_configured"> - <span class="fa fa-expand oe_pad_switch" /> + <span title="Full screen" class="fa fa-arrows-alt oe_pad_switch" /> </div> <div class="oe_pad_content oe_editing oe_configured" /> </t> |
