diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-03-28 13:31:13 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-03-28 13:31:13 +0200 |
| commit | 2d6775c4072f2415e159b9857e91a603d094ffd5 (patch) | |
| tree | 4b133c056617f2ff900bafa2eb5a74d966170498 /addons/web/static/src | |
| parent | 1a58a96f8c50f58765f759bb2ba06aedf6580ff4 (diff) | |
[FIX] Do not show More menu button if unnecessary
bzr revid: fme@openerp.com-20120328113113-w925pasg7jnmxtzw
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/chrome.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 4041843e7ea..ac70d99f79f 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -671,7 +671,7 @@ openerp.web.Menu = openerp.web.Widget.extend(/** @lends openerp.web.Menu# */{ if (maximum_visible_links === 'auto') { maximum_visible_links = this.auto_limit_entries(); } - if (maximum_visible_links) { + if (maximum_visible_links < this.data.data.children.length) { var $more = $(QWeb.render('Menu.more')), $index = this.$element.find('li').eq(maximum_visible_links - 1); $index.after($more); |
