mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
minor changes
This commit is contained in:
parent
fe148b378a
commit
0ffd8cecfa
2 changed files with 9 additions and 8 deletions
12
client.js
12
client.js
|
|
@ -717,12 +717,14 @@ CloudClient.Util = (function(){
|
|||
return ( lCurrentFileClass.indexOf(lCurrentClass) >= 0 );
|
||||
};
|
||||
|
||||
this.getCurrentLink = function(pCurrentFile){
|
||||
var lCurrent = this.getCurrentFile();
|
||||
|
||||
this.getCurrentLink = function(pCurrentFile){
|
||||
var lLink;
|
||||
lLink = (pCurrentFile ? pCurrentFile : lCurrent)
|
||||
.getElementsByTagName('a')[0];
|
||||
if(pCurrentFile)
|
||||
lLink = this.getByTag('a', pCurrentFile)[0];
|
||||
else{
|
||||
var lCurrentFile = this.getCurrentFile();
|
||||
lLink = this.getByTag('a', lCurrentFile)[0];
|
||||
}
|
||||
|
||||
if(!lLink)
|
||||
this.addCloudStatus({
|
||||
|
|
|
|||
|
|
@ -114,9 +114,8 @@ var CloudCommander, CloudFunc, CodeMirror;
|
|||
var lA;
|
||||
|
||||
/* getting link */
|
||||
lA = Util.getByTag('a', pCurrentFile);
|
||||
|
||||
lA = lA[0].href;
|
||||
lA = Util.getCurrentLink(pCurrentFile);
|
||||
lA = lA.href;
|
||||
|
||||
/* убираем адрес хоста*/
|
||||
lA = '/' + lA.replace(document.location.href,'');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue