config/site

This commit is contained in:
j 2011-05-28 13:18:28 +02:00
commit 1e57ecc423
20 changed files with 62 additions and 59 deletions

View file

@ -29,7 +29,7 @@ pandora.URL = (function() {
pandora.UI.set({
section: 'site',
sitePage: url
})
});
},
'^(find)$': function() {
pandora.Query.fromString('?find='); // fixme: silly hack
@ -50,7 +50,7 @@ pandora.URL = (function() {
item = split[0],
view = new RegExp(
'^(' + $.map(app.config.itemViews, function(v) {
return v.id
return v.id;
}).join('|') + ')$'
).exec(split[1]);
view = view ? view[0] : app.user.ui.itemView;