mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
minor changes
This commit is contained in:
parent
dee895cd8f
commit
231880598b
2 changed files with 31 additions and 22 deletions
49
client.js
49
client.js
|
|
@ -433,8 +433,8 @@ CloudClient.Util = (function(){
|
|||
lCurrent = pElem;
|
||||
else
|
||||
{
|
||||
lCurrent = lThis.getByClass(CloudCommander.CURRENT_FILE);
|
||||
lCurrent = lCurrent[0].firstChild.nextSibling;
|
||||
lCurrent = lThis.getCurrentFile;
|
||||
lCurrent = lCurrent.firstChild.nextSibling;
|
||||
}
|
||||
|
||||
/* show loading icon *
|
||||
|
|
@ -976,6 +976,31 @@ CloudClient._changeLinks = function(pPanelID){
|
|||
*/
|
||||
var lNoJS_s = CloudFunc.NOJS;
|
||||
var lFS_s = CloudFunc.FS;
|
||||
|
||||
var lOnContextMenu_f = function(pEvent){
|
||||
var lReturn_b = true;
|
||||
if(typeof CloudCommander.Menu === 'function'){
|
||||
var lRefreshIcon = Util
|
||||
.getByClass(CloudFunc.REFRESHICON);
|
||||
|
||||
Util.Images.showLoad(lRefreshIcon[0]);
|
||||
|
||||
CloudCommander.Menu({
|
||||
x: pEvent.x,
|
||||
y: pEvent.y
|
||||
});
|
||||
/* disabling browsers menu*/
|
||||
lReturn_b = false;
|
||||
}
|
||||
/* getting html element
|
||||
* currentTarget - DOM event
|
||||
* target - jquery event
|
||||
*/
|
||||
var lTarget = pEvent.currentTarget || pEvent.target;
|
||||
Util.setCurrentFile(lTarget);
|
||||
|
||||
return lReturn_b;
|
||||
};
|
||||
|
||||
for(var i=0; i < a.length ; i++)
|
||||
{
|
||||
|
|
@ -1012,25 +1037,7 @@ CloudClient._changeLinks = function(pPanelID){
|
|||
/* if right button clicked menu will
|
||||
* loads and shows
|
||||
*/
|
||||
lLi.oncontextmenu = function(pEvent){
|
||||
var lReturn_b = true;
|
||||
if(typeof CloudCommander.Menu === 'function'){
|
||||
CloudCommander.Menu({
|
||||
x: pEvent.x,
|
||||
y: pEvent.y
|
||||
});
|
||||
/* disabling browsers menu*/
|
||||
lReturn_b = false;
|
||||
}
|
||||
/* getting html element
|
||||
* currentTarget - DOM event
|
||||
* target - jquery event
|
||||
*/
|
||||
var lTarget = pEvent.currentTarget || pEvent.target;
|
||||
Util.setCurrentFile(lTarget);
|
||||
|
||||
return lReturn_b;
|
||||
}
|
||||
lLi.oncontextmenu = lOnContextMenu_f;
|
||||
|
||||
/* если ссылка на папку, а не файл */
|
||||
if(a[i].target !== '_blank'){
|
||||
|
|
|
|||
|
|
@ -136,8 +136,10 @@ CloudCommander.Menu.show = (function(pParent, pPosition){
|
|||
return function(){
|
||||
pParent.set();
|
||||
|
||||
pParent.Images.hideLoad();
|
||||
|
||||
if(pPosition && pPosition.x && pPosition.y)
|
||||
$('li').contextMenu(pPosition);
|
||||
$('li').contextMenu(pPosition);
|
||||
else
|
||||
$('li').contextMenu();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue