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,
|
draggable: options.draggable,
|
||||||
items: options.items,
|
items: Ox.clone(options.items, true),
|
||||||
sort: [{key: 'index', operator: '+'}],
|
sort: [{key: 'index', operator: '+'}],
|
||||||
sortable: options.sortable,
|
sortable: options.sortable,
|
||||||
selected: [],
|
selected: [],
|
||||||
|
@ -64,4 +64,4 @@ oml.ui.folderList = function(options) {
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -296,7 +296,7 @@ oml.ui.folders = function() {
|
||||||
oml.$ui.folder[0].$content
|
oml.$ui.folder[0].$content
|
||||||
.css({height: 16 + items.length * 16 + 'px'});
|
.css({height: 16 + items.length * 16 + 'px'});
|
||||||
oml.$ui.folderList[0].options({
|
oml.$ui.folderList[0].options({
|
||||||
items: items
|
items: Ox.clone(items, true)
|
||||||
})
|
})
|
||||||
.css({height: items.length * 16 + 'px'})
|
.css({height: items.length * 16 + 'px'})
|
||||||
.size();
|
.size();
|
||||||
|
|
|
@ -792,7 +792,6 @@ oml.getLists = function(callback) {
|
||||||
var ui = oml.user.ui;
|
var ui = oml.user.ui;
|
||||||
Ox.Request.clearCache('getLists');
|
Ox.Request.clearCache('getLists');
|
||||||
oml.api.getLists(function(result) {
|
oml.api.getLists(function(result) {
|
||||||
var username = oml.user.preferences.username;
|
|
||||||
ui._lists = result.data.lists.map(function(list) {
|
ui._lists = result.data.lists.map(function(list) {
|
||||||
// FIXME: 'editable' is notoriously vague
|
// FIXME: 'editable' is notoriously vague
|
||||||
list.name = list.type == 'libraries' ? Ox._('Libraries')
|
list.name = list.type == 'libraries' ? Ox._('Libraries')
|
||||||
|
|
Loading…
Reference in a new issue