fixed bug with getting showed menu in firefox

This commit is contained in:
coderaiser 2013-02-20 06:47:57 -05:00
parent f3ee7b9bfa
commit 100ba73af0
3 changed files with 4 additions and 2 deletions

View file

@ -155,6 +155,8 @@ for reading.
* Updated jquery jQuery-contextMenu to v1.6.5.
* Fixed bug with getting showed menu in firefox.
2012.12.12, Version 0.1.8

View file

@ -288,7 +288,7 @@ var CloudCommander, Util, DOM, $;
DOM.Images.hideLoad();
if(Position && !Position.x )
Position = null;
Position = undefined;
$('li').contextMenu(Position);
};

View file

@ -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}));