user might have been removed
This commit is contained in:
parent
720076d5d1
commit
9d01cbf57e
1 changed files with 12 additions and 10 deletions
|
@ -330,16 +330,18 @@ oml.ui.folders = function() {
|
||||||
library = lists.filter(function(list) {
|
library = lists.filter(function(list) {
|
||||||
return list.user == name && list.type == 'library';
|
return list.user == name && list.type == 'library';
|
||||||
});
|
});
|
||||||
oml.$ui.libraryList[index].options({
|
if (oml.$ui.libraryList[index]) {
|
||||||
items: library
|
oml.$ui.libraryList[index].options({
|
||||||
});
|
items: library
|
||||||
oml.$ui.folder[index].$content
|
});
|
||||||
.css({height: 16 + items.length * 16 + 'px'});
|
oml.$ui.folder[index].$content
|
||||||
oml.$ui.folderList[index].options({
|
.css({height: 16 + items.length * 16 + 'px'});
|
||||||
items: items
|
oml.$ui.folderList[index].options({
|
||||||
})
|
items: items
|
||||||
.css({height: items.length * 16 + 'px'})
|
})
|
||||||
.size();
|
.css({height: items.length * 16 + 'px'})
|
||||||
|
.size();
|
||||||
|
}
|
||||||
oml.resizeListFolders();
|
oml.resizeListFolders();
|
||||||
callback && callback();
|
callback && callback();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue