[MERGE][IMP] Tooltip for cropped menu items
bzr revid: rim@openerp.com-20140508143154-mjftu757whd9skya
This commit is contained in:
commit
5923c0f04f
|
@ -859,6 +859,10 @@ instance.web.Menu = instance.web.Widget.extend({
|
|||
$clicked_menu.parent().addClass('active');
|
||||
}
|
||||
}
|
||||
// add a tooltip to cropped menu items
|
||||
this.$secondary_menus.find('.oe_secondary_submenu li a span').each(function() {
|
||||
$(this).tooltip(this.scrollWidth > this.clientWidth ? {title: $(this).text().trim(), placement: 'auto right'} :'destroy');
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Call open_menu with the first menu_item matching an action_id
|
||||
|
|
Loading…
Reference in New Issue