fix renaming list

This commit is contained in:
j 2014-10-31 14:27:45 +01:00
parent ab87ba22d7
commit f5fb255e20
3 changed files with 3 additions and 4 deletions

View File

@ -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: [],
@ -64,4 +64,4 @@ oml.ui.folderList = function(options) {
return that;
};
};

View File

@ -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();

View File

@ -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')