You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model_folders.listFolders = function(array) {
_.each(array,function(f){
if(f.parentId===0){
f.folderPath = f.name;
} else {
//use links to get parent folder as far back as possible
var strPath = f.name;
var parentFolder = _.find(model_folders.getAvailFolders(),{id:f.parentId});
var i=0;
if(parentFolder){
do{
i++;
strPath = parentFolder.name+'/'+strPath;
parentFolder = _.find(model_folders.getAvailFolders(),{id:parentFolder.parentId});
} while (parentFolder || i===10);
f.folderPath = strPath;
}
}
});
};
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: