#3881 Right click torrent context menu does not work with Firefox / Firegestures / Ubuntu

This commit is contained in:
Mitchell Livingston
2011-01-15 17:00:52 +00:00
parent b9e4fcdb40
commit f74e3b5b3a
2 changed files with 9 additions and 8 deletions

View File

@@ -122,7 +122,14 @@
if( left + menu.width() > $(window).width() ) left = left - menu.width();
menu.css({'left':left,'top':top}).show();
if (cur.shadow) shadow.css({width:menu.width(),height:menu.height(),left:e.pageX+2,top:e.pageY+2}).show();
$(document).one('click', hide);
setTimeout( function() { // Delay for Mozilla
$(document).click( function() {
$(document).unbind('click');
hide();
return false;
});
}, 0);
}
function hide() {