minor changes

This commit is contained in:
coderaiser 2013-02-18 08:13:45 -05:00
parent 9cea6de023
commit 8e586d3d09

View file

@ -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];