From d47113ac342e6b7aacb35bc2d4b5354f6fcb7bec Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 15 Aug 2012 11:24:08 +0300 Subject: [PATCH] Update client.js --- client.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index 6493fc79..8640c739 100644 --- a/client.js +++ b/client.js @@ -996,7 +996,16 @@ CloudClient._changeLinks = function(pPanelID){ else { lLi.onclick = CloudClient._setCurrent(); - lLi.oncontextmenu = CloudClient.mouseBinding; + /* if right button clicked menu will + * loads and shows + */ + lLi.oncontextmenu = function(){ + if(typeof CloudCommander.Menu === 'function') + CloudCommander.Menu({ + x: pEvent.x, + y: pEvent.y + }); + } /* если ссылка на папку, а не файл */ if(a[i].target !== '_blank'){