Fix in mobile theme not able to dismiss the context menu:

- touch and open entries and swip (left/right) over any rows on the next match list will dismiss the context menu
This commit is contained in:
Hadi Nategh 2015-02-19 11:45:05 +00:00
parent 52b4856a18
commit 212e98ccdb
2 changed files with 6 additions and 1 deletions

View File

@ -77,6 +77,8 @@ function et2_dataview_rowAOI(_node)
case "left":
case "right":
state = 1;
// Hide context menu on swip actions
if(_egw_active_menu) _egw_active_menu.hide();
break;
}
}
@ -106,7 +108,7 @@ function et2_dataview_rowAOI(_node)
click: function (event)
{
selectHandler(event);
},
}
});
} else {

View File

@ -150,6 +150,9 @@ function egwPopupActionImplementation()
e.stopPropagation();
e.cancelBubble = true;
// remove context menu if we are in mobile theme
// and intended to open the entry
if (_egw_active_menu && e.which == 1) _egw_active_menu.hide();
return false;
};