From 38de605184a0c9910424067f9f0812ad4d29e9f8 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 14 Aug 2012 17:57:57 +0300 Subject: [PATCH] Update client.js --- client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client.js b/client.js index b2d5ba21..424a56a2 100644 --- a/client.js +++ b/client.js @@ -995,7 +995,12 @@ CloudClient._changeLinks = function(pPanelID){ else { lLi.onclick = CloudClient._setCurrent(); - lLi.oncontextmenu = CloudCommander.mouseBinding(lLi); + lLi.oncontextmenu = function(pEvent){ + if(typeof CloudCommander.Menu === 'function') + CloudCommander.Menu(pEvent.x, pEvent.y); + else + CloudCommander.Menu.show(); + } /* если ссылка на папку, а не файл */ if(a[i].target !== '_blank'){