From d933b4bc430bb789f64660a3ebb9503761b8f5eb Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 30 May 2011 00:42:21 +0200 Subject: [PATCH] config / site leftover --- static/js/pandora/URL.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 5d01ca9d7..b7f8d7d65 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -49,7 +49,7 @@ pandora.URL = (function() { var split = url.split('/'), item = split[0], view = new RegExp( - '^(' + $.map(app.config.itemViews, function(v) { + '^(' + $.map(app.site.itemViews, function(v) { return v.id; }).join('|') + ')$' ).exec(split[1]); @@ -73,7 +73,7 @@ pandora.URL = (function() { if (arguments.length == 1) { // fixme: remove later url = title; } - history.pushState({}, app.config.site.name + (title ? ' - ' + title : ''), '/' + url); + history.pushState({}, app.site.site.name + (title ? ' - ' + title : ''), '/' + url); old.user.ui = $.extend({}, app.user.ui); // make a clone this.update(); },