From 65491b2704a2e3894e4803689313e2d90174bc47 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Mon, 20 Jul 2009 21:31:30 +0000 Subject: Make the view URL in Futon consistent with the URL for views in the HTTP interface (and thereby also avoid a redirect). Thanks to Volker Mische for the suggestion and patch. Closes COUCHDB-408. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796027 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/database.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'share/www/database.html') diff --git a/share/www/database.html b/share/www/database.html index 5a722e1a..1abed3db 100644 --- a/share/www/database.html +++ b/share/www/database.html @@ -40,11 +40,6 @@ specific language governing permissions and limitations under the License. if (page.redirecting) return; $("h1 strong").text(page.db.name); var viewPath = page.viewName || "_all_docs"; - if (/^_design\//.test(viewPath)) { - var parts = viewPath.split("/"); - parts.splice(2, 0, "_view"); - viewPath = parts.join("/"); - } if (viewPath != "_temp_view" && viewPath != "_design_docs") { $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) + "/" + viewPath); @@ -95,7 +90,7 @@ specific language governing permissions and limitations under the License. var viewName = $(this).val(); if (!viewName) $.cookies.remove(page.db.name + ".view"); location.href = "?" + encodeURIComponent(page.db.name) + - (viewName ? "/" + encodeURIComponent(viewName) : ""); + (viewName ? "/" + viewName : ""); }); $("#documents thead th.key").click(function() { $(this).toggleClass("desc"); -- cgit v1.2.3