Mobile theme W.I.P.:

- Fix triggering contextmenu
This commit is contained in:
Hadi Nategh 2016-02-08 10:48:12 +00:00
parent 36c97ec7e9
commit 9c64c3b708

View File

@ -257,6 +257,7 @@ function egwPopupActionImplementation()
ai._registerContext = function(_node, _callback, _context)
{
var contextHandler = function(e) {
if(egwIsMobile() && e.originalEvent.which == 3) return;
//Obtain the event object
if (!e)
{
@ -281,12 +282,8 @@ function egwPopupActionImplementation()
}
return !e.cancelBubble;
};
if (egwIsMobile()) {
$j(_node).bind('taphold', contextHandler);
} else {
$j(_node).on('contextmenu', contextHandler);
}
$j(_node).on('contextmenu', contextHandler);
};
ai.doRegisterAction = function(_aoi, _callback, _context)