refactor(client) private -> public: createFileTable

This commit is contained in:
coderaiser 2013-12-06 16:00:27 +00:00
parent 5e0c09b338
commit a6c2fa183a

View file

@ -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 */