From cd536ba7c61243e517e71664d12cd1970fdbd079 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 18 Mar 2013 08:21:18 -0400 Subject: [PATCH] minor changes --- html/file.html | 9 ++++++++- html/path.html | 5 ++++- lib/client/dom.js | 6 ++++-- lib/cloudfunc.js | 14 ++++++++------ 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/html/file.html b/html/file.html index 4d565302..7b957541 100644 --- a/html/file.html +++ b/html/file.html @@ -1 +1,8 @@ -
  • {name}{size}{owner}{mode}
  • \ No newline at end of file +
  • + + + {name} + + {size}{owner} + {mode} +
  • \ No newline at end of file diff --git a/html/path.html b/html/path.html index a262144f..21fad940 100644 --- a/html/path.html +++ b/html/path.html @@ -1 +1,4 @@ -
  • {path}
  • \ No newline at end of file +
  • + + {path} +
  • \ No newline at end of file diff --git a/lib/client/dom.js b/lib/client/dom.js index 9f112aab..af99b682 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -864,8 +864,10 @@ var CloudCommander, Util, var lCurrent; if(pPosition && pPosition.top) lCurrent = DOM.getRefreshButton().parentElement; - else - lCurrent = DOM.getCurrentFile().firstChild.nextSibling; + else{ + var lFile = DOM.getCurrentFile(); + lCurrent = DOM.getByClass('name', lFile)[0]; + } /* show loading icon if it not showed */ diff --git a/lib/cloudfunc.js b/lib/cloudfunc.js index 47c5be37..c1f1abed 100644 --- a/lib/cloudfunc.js +++ b/lib/cloudfunc.js @@ -342,6 +342,7 @@ var CloudFunc, exports, Util; lFileTable += Util.render(pTemplate,{ type : 'directory', link : lLink, + target : '', name : '..', size : '<dir>', owner : '.', @@ -353,12 +354,13 @@ var CloudFunc, exports, Util; var lFile = files[i]; lFileTable += Util.render(pTemplate,{ - type : lFile.size === 'dir' ? 'directory' : 'text-file', - link : FS + lPath + lFile.name, - name : lFile.name, - size : lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize( lFile.size ), - owner : !lFile.uid ? 'root' : lFile.uid, - mode : CloudFunc.getSymbolicPermissions(lFile.mode) + type : lFile.size === 'dir' ? 'directory' : 'text-file', + link : FS + lPath + lFile.name, + target : lFile.size === 'dir' ? '' : "_blank", + name : lFile.name, + size : lFile.size === 'dir' ? '<dir>' : CloudFunc.getShortSize( lFile.size ), + owner : !lFile.uid ? 'root' : lFile.uid, + mode : CloudFunc.getSymbolicPermissions(lFile.mode) }); }