From 3fd24e1cb5f67fa3c42476b9a6e6e5589ca21e3b Mon Sep 17 00:00:00 2001 From: bth-openerp Date: Thu, 5 Dec 2013 11:50:07 +0530 Subject: [PATCH] [IMP]Add tooltip options and add for search view drawer. bzr revid: bth@tinyerp.com-20131205062007-cbo6wuuyg1buy0we --- addons/web/static/src/css/base.css | 3 +++ addons/web/static/src/js/chrome.js | 2 +- addons/web/static/src/js/search.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index b4e6d4a24b2..6188b3fc26e 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -641,6 +641,9 @@ left: 12% !important; margin-top: 0.5px; } +.tooltip.bottom { + padding: 5px 0 !important; +} .openerp .oe_notebook { margin: 8px 0; padding: 0 16px; diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index c58089f4b5c..848f9e1ec3c 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1262,7 +1262,7 @@ instance.web.Client = instance.web.Widget.extend({ bind_events: function() { var self = this; this.$el.on('mouseenter', '.oe_systray > div:not([data-toggle=tooltip])', function() { - $(this).attr('data-toggle', 'tooltip').tooltip().trigger('mouseenter'); + $(this).attr('data-toggle', 'tooltip').tooltip({placement: 'bottom', html: true}).trigger('mouseenter'); }); this.$el.on('click', '.oe_dropdown_toggle', function(ev) { ev.preventDefault(); diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js index c3ef682bfcc..50535150bf3 100644 --- a/addons/web/static/src/js/search.js +++ b/addons/web/static/src/js/search.js @@ -400,7 +400,7 @@ instance.web.SearchView = instance.web.Widget.extend(/** @lends instance.web.Sea this.query = new my.SearchQuery() .on('add change reset remove', this.proxy('do_search')) .on('add change reset remove', this.proxy('renderFacets')); - + $('.oe_searchview_unfold_drawer').tooltip({html: true}); if (this.options.hidden) { this.$el.hide(); }