mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
minor changes
This commit is contained in:
parent
9cea6de023
commit
8e586d3d09
1 changed files with 3 additions and 6 deletions
|
|
@ -601,12 +601,8 @@ CloudCmd._createFileTable = function(pElem, pJSON){
|
|||
var lElem = DOM.getById(pElem),
|
||||
/* getting current element if was refresh */
|
||||
lPath = DOM.getByClass('path', lElem),
|
||||
lWasRefresh_b = lPath[0].textContent === pJSON[0].path,
|
||||
lCurrent;
|
||||
lWasRefresh_b = lPath[0].textContent === pJSON[0].path;
|
||||
|
||||
if(lWasRefresh_b)
|
||||
lCurrent = DOM.getCurrentFile();
|
||||
|
||||
/* говорим построителю,
|
||||
* что бы он в нужный момент
|
||||
* выделил строку с первым файлом
|
||||
|
|
@ -621,7 +617,8 @@ CloudCmd._createFileTable = function(pElem, pJSON){
|
|||
lElem.innerHTML = CloudFunc.buildFromJSON(pJSON, true);
|
||||
|
||||
/* searching current file */
|
||||
if(lWasRefresh_b && lCurrent){
|
||||
if(lWasRefresh_b){
|
||||
var lCurrent = DOM.getCurrentFile();
|
||||
for(i = 0; i < lElem.childNodes.length; i++)
|
||||
if(lElem.childNodes[i].textContent === lCurrent.textContent){
|
||||
lCurrent = lElem.childNodes[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue