mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
fixed bug with getting showed menu in firefox
This commit is contained in:
parent
f3ee7b9bfa
commit
100ba73af0
3 changed files with 4 additions and 2 deletions
|
|
@ -288,7 +288,7 @@ var CloudCommander, Util, DOM, $;
|
|||
DOM.Images.hideLoad();
|
||||
|
||||
if(Position && !Position.x )
|
||||
Position = null;
|
||||
Position = undefined;
|
||||
|
||||
$('li').contextMenu(Position);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1217,7 +1217,7 @@ function splitAccesskey(val) {
|
|||
|
||||
// handle contextMenu triggers
|
||||
$.fn.contextMenu = function(operation) {
|
||||
if (operation === undefined) {
|
||||
if (!operation) {
|
||||
this.first().trigger('contextmenu');
|
||||
} else if (operation.x && operation.y) {
|
||||
this.first().trigger($.Event("contextmenu", {pageX: operation.x, pageY: operation.y}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue