diff --git a/pandora/0xdb.json b/pandora/0xdb.json index 915f84efe..a5fd8865d 100644 --- a/pandora/0xdb.json +++ b/pandora/0xdb.json @@ -472,15 +472,6 @@ ] } ], - "listDefaults": { - "columns": ["title", "director", "country", "year", "language", "runtime", "genre"], - "columnWidth": {}, - "listView": "grid", - "selected": [], - "sort": [ - {"key": "director", "operator": ""} - ] - }, "listViews": [ {"id": "list", "title": "as List"}, {"id": "grid", "title": "as Grid"}, @@ -561,7 +552,17 @@ "item": "", "itemView": "info", "list": "", - "lists": {}, + "lists": { + "": { + "columns": ["title", "director", "country", "year", "language", "runtime", "genre"], + "columnWidth": {}, + "listView": "grid", + "selected": [], + "sort": [ + {"key": "director", "operator": ""} + ] + } + }, "query": {"conditions": [], "operator": ""}, "section": "items", "showAnnotations": true, diff --git a/static/js/pandora.js b/static/js/pandora.js index 2b151190e..ff53100fe 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -51,6 +51,7 @@ Ox.load({ site: data.site, user: data.user.level == 'guest' ? Ox.extend({}, data.site.user) : data.user }); + Ox.print("USER", data.user) Ox.extend(pandora.site, { findKeys: Ox.map(data.site.itemKeys, function(key) { return key.find ? key : null; diff --git a/static/js/pandora/Query.js b/static/js/pandora/Query.js index 725215c26..30c050e65 100644 --- a/static/js/pandora/Query.js +++ b/static/js/pandora/Query.js @@ -227,7 +227,7 @@ pandora.Query = (function() { Ox.print('STATE', data); Ox.print(Ox.repeat('-', 120)); !pandora.user.ui.lists[data.list] && pandora.UI.set( - 'lists|' + data.list, pandora.site.listDefaults + 'lists|' + data.list, pandora.site.user.lists[''] ); pandora.UI.set({list: data.list}); pandora.user.ui.find = data.find;