From 65ef0428ec869bcad223da2434f506a64635761a Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 5 Dec 2013 12:01:44 +0000 Subject: [PATCH] refactor(client) createFileTable --- lib/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,