[IMP]Add tooltip options and add for search view drawer.
authorbth-openerp <bth@tinyerp.com>
Thu, 5 Dec 2013 06:20:07 +0000 (11:50 +0530)
committerbth-openerp <bth@tinyerp.com>
Thu, 5 Dec 2013 06:20:07 +0000 (11:50 +0530)
bzr revid: bth@tinyerp.com-20131205062007-cbo6wuuyg1buy0we

addons/web/static/src/css/base.css
addons/web/static/src/js/chrome.js
addons/web/static/src/js/search.js

index b4e6d4a..6188b3f 100644 (file)
   left: 12% !important;
   margin-top: 0.5px;
 }
+.tooltip.bottom {
+  padding: 5px 0 !important;
+}
 .openerp .oe_notebook {
   margin: 8px 0;
   padding: 0 16px;
index c58089f..848f9e1 100644 (file)
@@ -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();
index c3ef682..5053515 100644 (file)
@@ -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();
         }