use sitePages instead of static list

This commit is contained in:
j 2012-02-18 15:39:53 +00:00
commit 5599b933d8
2 changed files with 9 additions and 7 deletions

View file

@ -232,11 +232,13 @@ pandora.URL = (function() {
findKeys: findKeys,
getItem: pandora.getItemByIdOrTitle,
getSpan: pandora.getMetadataByIdOrName,
pages: [
'about', 'api', 'contact', 'faq', 'help', 'home', 'news',
'preferences', 'rights', 'signin', 'signout', 'signup',
'software', 'terms', 'tour', 'tutorial', 'tv'
],
pages: Ox.merge(
['home', 'software', 'api', 'help', 'tv'],
pandora.site.sitePages.map(function(page) {
return page.id;
}),
['preferences', 'signup', 'signin', 'signout']
),
sortKeys: sortKeys,
spanType: spanType,
types: [pandora.site.itemName.plural.toLowerCase(), 'edits', 'texts'],