refactor(client) ajaxLoad

This commit is contained in:
coderaiser 2014-05-22 09:35:40 -04:00
parent 8ce8ffaba0
commit 0b04f0f731

View file

@ -385,9 +385,9 @@ var Util, DOM, CloudFunc;
if (!isRefresh && json)
CloudCmd.createFileTable(obj, panel, nohistory);
else
RESTful.read(cleanPath, 'json', function(json) {
CloudCmd.createFileTable(json, panel, nohistory);
Storage.set(cleanPath, json);
RESTful.read(cleanPath, 'json', function(obj) {
CloudCmd.createFileTable(obj, panel, nohistory);
Storage.set(cleanPath, obj);
});
});
}