fix renaming list
This commit is contained in:
parent
ab87ba22d7
commit
f5fb255e20
3 changed files with 3 additions and 4 deletions
|
@ -47,7 +47,7 @@ oml.ui.folderList = function(options) {
|
|||
}
|
||||
],
|
||||
draggable: options.draggable,
|
||||
items: options.items,
|
||||
items: Ox.clone(options.items, true),
|
||||
sort: [{key: 'index', operator: '+'}],
|
||||
sortable: options.sortable,
|
||||
selected: [],
|
||||
|
|
|
@ -296,7 +296,7 @@ oml.ui.folders = function() {
|
|||
oml.$ui.folder[0].$content
|
||||
.css({height: 16 + items.length * 16 + 'px'});
|
||||
oml.$ui.folderList[0].options({
|
||||
items: items
|
||||
items: Ox.clone(items, true)
|
||||
})
|
||||
.css({height: items.length * 16 + 'px'})
|
||||
.size();
|
||||
|
|
|
@ -792,7 +792,6 @@ oml.getLists = function(callback) {
|
|||
var ui = oml.user.ui;
|
||||
Ox.Request.clearCache('getLists');
|
||||
oml.api.getLists(function(result) {
|
||||
var username = oml.user.preferences.username;
|
||||
ui._lists = result.data.lists.map(function(list) {
|
||||
// FIXME: 'editable' is notoriously vague
|
||||
list.name = list.type == 'libraries' ? Ox._('Libraries')
|
||||
|
|
Loading…
Reference in a new issue