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:46:30 +00:00
parent a7459e57b4
commit e544b91429

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;
} }
}); });
}, },