mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(listeners) chagenLinks: lOnContextMenu_f
This commit is contained in:
parent
58cc050e97
commit
cd55a17dc3
1 changed files with 8 additions and 6 deletions
|
|
@ -97,7 +97,9 @@ var Util, DOM, CloudCmd;
|
|||
|
||||
/* right mouse click function varible */
|
||||
lOnContextMenu_f = function(pEvent){
|
||||
var lReturn_b = true,
|
||||
var target,
|
||||
isFunc = Util.isFunction(CloudCmd.Menu),
|
||||
ret = true,
|
||||
Key = CloudCmd.Key;
|
||||
|
||||
Key && Key.unsetBind();
|
||||
|
|
@ -106,21 +108,21 @@ var Util, DOM, CloudCmd;
|
|||
* currentTarget - DOM event
|
||||
* target - jquery event
|
||||
*/
|
||||
var lTarget = pEvent.currentTarget || pEvent.target;
|
||||
DOM.setCurrentFile(lTarget);
|
||||
target = pEvent.currentTarget || pEvent.target;
|
||||
DOM.setCurrentFile(target);
|
||||
|
||||
if(Util.isFunction(CloudCmd.Menu)) {
|
||||
if (isFunc) {
|
||||
CloudCmd.Menu({
|
||||
x: pEvent.clientX,
|
||||
y: pEvent.clientY
|
||||
});
|
||||
|
||||
/* disabling browsers menu*/
|
||||
lReturn_b = false;
|
||||
ret = false;
|
||||
DOM.Images.showLoad();
|
||||
}
|
||||
|
||||
return lReturn_b;
|
||||
return ret;
|
||||
},
|
||||
|
||||
/* drag and drop function varible
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue