forked from extern/egroupware
Mobile theme W.I.P.:
- Fix triggering contextmenu
This commit is contained in:
parent
36c97ec7e9
commit
9c64c3b708
@ -257,6 +257,7 @@ function egwPopupActionImplementation()
|
|||||||
ai._registerContext = function(_node, _callback, _context)
|
ai._registerContext = function(_node, _callback, _context)
|
||||||
{
|
{
|
||||||
var contextHandler = function(e) {
|
var contextHandler = function(e) {
|
||||||
|
if(egwIsMobile() && e.originalEvent.which == 3) return;
|
||||||
//Obtain the event object
|
//Obtain the event object
|
||||||
if (!e)
|
if (!e)
|
||||||
{
|
{
|
||||||
@ -282,11 +283,7 @@ function egwPopupActionImplementation()
|
|||||||
return !e.cancelBubble;
|
return !e.cancelBubble;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (egwIsMobile()) {
|
$j(_node).on('contextmenu', contextHandler);
|
||||||
$j(_node).bind('taphold', contextHandler);
|
|
||||||
} else {
|
|
||||||
$j(_node).on('contextmenu', contextHandler);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ai.doRegisterAction = function(_aoi, _callback, _context)
|
ai.doRegisterAction = function(_aoi, _callback, _context)
|
||||||
|
Loading…
Reference in New Issue
Block a user