mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fixed bug with path links
This commit is contained in:
parent
a0eaeadbbe
commit
47d835547a
1 changed files with 12 additions and 3 deletions
15
client.js
15
client.js
|
|
@ -454,14 +454,23 @@ CloudClient._changeLinks = function(pPanelID)
|
|||
* двойное нажатие на левую кнопку мышки
|
||||
*/
|
||||
else{
|
||||
var lLi;
|
||||
|
||||
try{
|
||||
var lLi = a[i].parentElement.parentElement;
|
||||
|
||||
lLi = a[i].parentElement.parentElement;
|
||||
}catch(error){console.log(error);}
|
||||
|
||||
/* if we in path changing onclick events*/
|
||||
if (lLi.className === 'path'){
|
||||
a[i].onclick = CloudClient._setCurrent();
|
||||
a[i].ondblclick = CloudClient._loadDir(link);
|
||||
}
|
||||
else {
|
||||
lLi.onclick = CloudClient._setCurrent();
|
||||
lLi.ondblclick = CloudClient._loadDir(link);
|
||||
lLi.id = (a[i].title ? a[i].title : a[i].textContent) +
|
||||
'(' + pPanelID + ')';
|
||||
}catch(error){console.log(error);}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue