mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +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
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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