deals with situation that no extra application menu is necessary

This commit is contained in:
Ralf Becker 2014-03-12 12:18:35 +00:00
parent bec9fe838e
commit 8d1633f58b

View File

@ -27,11 +27,11 @@ egw_LAB.wait(function() {
mouseHandler = data_slide_out == 'mouseover'?'mouseover':'click';
}
var extra_icons_show = jQuery('#extra_icons_show');
if (extra_icons_show.length)
{
var menu1Container = jQuery('#menu1Container')
.width(180)
.offset({top:extra_icons_show.offset().top+extra_icons_show.height()});
var menu2show = jQuery('#menu2show');
var menu2Container = jQuery('#menu2Container');
//Click handler for extra apps menu
extra_icons_show.on(mouseHandler,function (event){
var extraIcon = event;
@ -45,6 +45,9 @@ egw_LAB.wait(function() {
menu1Container.slideToggle();
}
);
}
var menu2show = jQuery('#menu2show');
var menu2Container = jQuery('#menu2Container');
// Click handler for sidebox menu
menu2show.on(mouseHandler,function (event){
var m2showIcon = event;