Do not show the dropdown menu if there is no actions on toolbar "more..." menu

This commit is contained in:
Hadi Nategh 2015-05-15 08:45:48 +00:00
parent 8f92df1a86
commit d35a0947d3

View File

@ -357,6 +357,11 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
}, },
create: function (event, ui) { create: function (event, ui) {
$j('html').unbind('click.outsideOfMenu'); $j('html').unbind('click.outsideOfMenu');
},
beforeActivate: function ()
{
// Nothing to show in menulist
if (menulist.children().length == 0) return false;
} }
}); });
}, },