diff --git a/static/js/folderList.js b/static/js/folderList.js index 7509d69..1325213 100644 --- a/static/js/folderList.js +++ b/static/js/folderList.js @@ -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; -}; \ No newline at end of file +}; diff --git a/static/js/folders.js b/static/js/folders.js index 5891674..bedf813 100644 --- a/static/js/folders.js +++ b/static/js/folders.js @@ -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(); diff --git a/static/js/utils.js b/static/js/utils.js index df2a1df..449d4c0 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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')