projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c0289e
)
[IMP]add tooltip to menu with bootstrap.
author
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Fri, 18 Apr 2014 13:30:36 +0000
(19:00 +0530)
committer
Vidhin Mehta (OpenERP)
<vme@tinyerp.com>
Fri, 18 Apr 2014 13:30:36 +0000
(19:00 +0530)
bzr revid: vme@tinyerp.com-
20140418133036
-lspgwn0fywl5zrn3
addons/web/static/src/js/chrome.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/chrome.js
b/addons/web/static/src/js/chrome.js
index
3c1f55d
..
91e20d9
100644
(file)
--- a/
addons/web/static/src/js/chrome.js
+++ b/
addons/web/static/src/js/chrome.js
@@
-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