diff --git a/pandora/0xdb.json b/pandora/0xdb.json index a5fd8865..915f84ef 100644 --- a/pandora/0xdb.json +++ b/pandora/0xdb.json @@ -472,6 +472,15 @@ ] } ], + "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"}, @@ -552,17 +561,7 @@ "item": "", "itemView": "info", "list": "", - "lists": { - "": { - "columns": ["title", "director", "country", "year", "language", "runtime", "genre"], - "columnWidth": {}, - "listView": "grid", - "selected": [], - "sort": [ - {"key": "director", "operator": ""} - ] - } - }, + "lists": {}, "query": {"conditions": [], "operator": ""}, "section": "items", "showAnnotations": true, diff --git a/static/js/pandora/Query.js b/static/js/pandora/Query.js index 5305f860..725215c2 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].join('|'), pandora.site.user.ui.lists[''] + 'lists|' + data.list, pandora.site.listDefaults ); pandora.UI.set({list: data.list}); pandora.user.ui.find = data.find;