user might have been removed

This commit is contained in:
j 2016-04-06 11:21:51 +02:00
parent 720076d5d1
commit 9d01cbf57e

View file

@ -330,16 +330,18 @@ oml.ui.folders = function() {
library = lists.filter(function(list) {
return list.user == name && list.type == 'library';
});
oml.$ui.libraryList[index].options({
items: library
});
oml.$ui.folder[index].$content
.css({height: 16 + items.length * 16 + 'px'});
oml.$ui.folderList[index].options({
items: items
})
.css({height: items.length * 16 + 'px'})
.size();
if (oml.$ui.libraryList[index]) {
oml.$ui.libraryList[index].options({
items: library
});
oml.$ui.folder[index].$content
.css({height: 16 + items.length * 16 + 'px'});
oml.$ui.folderList[index].options({
items: items
})
.css({height: items.length * 16 + 'px'})
.size();
}
oml.resizeListFolders();
callback && callback();
});