add pandora.site.listDefaults

This commit is contained in:
rolux 2011-09-17 14:01:47 +00:00
parent cf9722700f
commit fa20924d2e
2 changed files with 11 additions and 12 deletions

View file

@ -472,6 +472,15 @@
] ]
} }
], ],
"listDefaults": {
"columns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"columnWidth": {},
"listView": "grid",
"selected": [],
"sort": [
{"key": "director", "operator": ""}
]
},
"listViews": [ "listViews": [
{"id": "list", "title": "as List"}, {"id": "list", "title": "as List"},
{"id": "grid", "title": "as Grid"}, {"id": "grid", "title": "as Grid"},
@ -552,17 +561,7 @@
"item": "", "item": "",
"itemView": "info", "itemView": "info",
"list": "", "list": "",
"lists": { "lists": {},
"": {
"columns": ["title", "director", "country", "year", "language", "runtime", "genre"],
"columnWidth": {},
"listView": "grid",
"selected": [],
"sort": [
{"key": "director", "operator": ""}
]
}
},
"query": {"conditions": [], "operator": ""}, "query": {"conditions": [], "operator": ""},
"section": "items", "section": "items",
"showAnnotations": true, "showAnnotations": true,

View file

@ -227,7 +227,7 @@ pandora.Query = (function() {
Ox.print('STATE', data); Ox.print('STATE', data);
Ox.print(Ox.repeat('-', 120)); Ox.print(Ox.repeat('-', 120));
!pandora.user.ui.lists[data.list] && pandora.UI.set( !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.UI.set({list: data.list});
pandora.user.ui.find = data.find; pandora.user.ui.find = data.find;