From 5814b0fc45d1167cdc1780184c42b2800dfa8b67 Mon Sep 17 00:00:00 2001 From: Rohan Patel Date: Mon, 29 Aug 2016 18:32:42 +0530 Subject: [PATCH] [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' --- addons/pad/static/src/js/pad.js | 4 +++- 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 @@
- +