library id also changes if user is renamed
This commit is contained in:
parent
664fc702c2
commit
f979cd4890
3 changed files with 9 additions and 3 deletions
|
@ -310,7 +310,13 @@ oml.ui.folders = function() {
|
||||||
oml.$ui.folder[index].options({title: Ox.encodeHTMLEntities(name)});
|
oml.$ui.folder[index].options({title: Ox.encodeHTMLEntities(name)});
|
||||||
oml.getLists(function(lists) {
|
oml.getLists(function(lists) {
|
||||||
var items = lists.filter(function(list) {
|
var items = lists.filter(function(list) {
|
||||||
return list.user == name && list.type != 'library';
|
return list.user == name && list.type != 'library';
|
||||||
|
}),
|
||||||
|
library = lists.filter(function(list) {
|
||||||
|
return list.user == name && list.type == 'library';
|
||||||
|
});
|
||||||
|
oml.$ui.libraryList[index].options({
|
||||||
|
items: library
|
||||||
});
|
});
|
||||||
oml.$ui.folder[index].$content
|
oml.$ui.folder[index].$content
|
||||||
.css({height: 16 + items.length * 16 + 'px'});
|
.css({height: 16 + items.length * 16 + 'px'});
|
||||||
|
|
|
@ -478,7 +478,7 @@ oml.ui.mainMenu = function() {
|
||||||
}
|
}
|
||||||
} else if (id == 'quit') {
|
} else if (id == 'quit') {
|
||||||
oml.api.quit(function() {
|
oml.api.quit(function() {
|
||||||
//
|
// ...
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Ox.print('MAIN MENU DOES NOT YET HANDLE', id);
|
Ox.print('MAIN MENU DOES NOT YET HANDLE', id);
|
||||||
|
|
|
@ -947,7 +947,7 @@ oml.renameUser = function(data) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
oml.resizeFilters = function() {
|
oml.resizeFilters = function() {
|
||||||
|
|
Loading…
Reference in a new issue