[IMP]Add tooltip options and add for search view drawer.
bzr revid: bth@tinyerp.com-20131205062007-cbo6wuuyg1buy0we
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user