From d35a0947d3db22476db310eb0722243b512ed316 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 15 May 2015 08:45:48 +0000 Subject: [PATCH] Do not show the dropdown menu if there is no actions on toolbar "more..." menu --- etemplate/js/et2_widget_toolbar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index 944993fe4e..93daa16d52 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -357,6 +357,11 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], }, create: function (event, ui) { $j('html').unbind('click.outsideOfMenu'); + }, + beforeActivate: function () + { + // Nothing to show in menulist + if (menulist.children().length == 0) return false; } }); },