[IMP]add tooltip to menu with bootstrap.
bzr revid: vme@tinyerp.com-20140418133036-lspgwn0fywl5zrn3
This commit is contained in:
@@ -859,6 +859,12 @@ instance.web.Menu = instance.web.Widget.extend({
|
||||
$clicked_menu.parent().addClass('active');
|
||||
}
|
||||
}
|
||||
this.$secondary_menus.find('.oe_secondary_submenu li a span').each(function() {
|
||||
var $el = $(this);
|
||||
if (this.scrollWidth > this.clientWidth) {
|
||||
$el.tooltip({title: $el.attr('title', $el.text().trim())});
|
||||
}
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Call open_menu with the first menu_item matching an action_id
|
||||
|
||||
Reference in New Issue
Block a user