diff --git a/lib/client.js b/lib/client.js index a14bf474..44d5c3c0 100644 --- a/lib/client.js +++ b/lib/client.js @@ -396,13 +396,13 @@ var Util, DOM, CloudFunc, CloudCmd; function createFileTable(pElem, pJSON) { var lElem = DOM.getById(pElem), /* getting current element if was refresh */ - lPath = DOM.getByClass('path', lElem), + lPath = DOM.getCurrentDirPath(lElem), lCurrent = DOM.getCurrentFile(), lDir = DOM.getCurrentDirName(), lName = DOM.getCurrentName(lCurrent), - lWasRefresh_b = lPath[0].textContent === pJSON.path, + lWasRefresh_b = lPath === pJSON.path, lFuncs = [ CloudCmd.getFileTemplate, CloudCmd.getPathTemplate,