diff --git a/lib/client.js b/lib/client.js index 5564d13e..3da247f0 100644 --- a/lib/client.js +++ b/lib/client.js @@ -353,7 +353,7 @@ var Util, DOM, CloudFunc, CloudCmd; if (lJSON) { lJSON = Util.parseJSON(lJSON); - createFileTable(lJSON); + CloudCmd.createFileTable(lJSON); } else lRet = true; @@ -370,7 +370,7 @@ var Util, DOM, CloudFunc, CloudCmd; }, success : function(pData) { - createFileTable(pData); + CloudCmd.createFileTable(pData); /* переводим таблицу файлов в строку, для * * сохранения в localStorage */ @@ -389,7 +389,7 @@ var Util, DOM, CloudFunc, CloudCmd; * Функция строит файловую таблицу * @param pJSON - данные о файлах */ - function createFileTable(pJSON) { + this.createFileTable = function(pJSON) { var files, panel = DOM.getPanel(), /* getting current element if was refresh */