From 847c583183cbeeddbbd8daac6ce191d9308b0502 Mon Sep 17 00:00:00 2001 From: mpl Date: Tue, 16 Jul 2013 16:43:03 +0200 Subject: [PATCH] UI toolbar: open search or index in same window/tab Change-Id: I242fc4a23437b8ccf6bc6f33c3f8a7d9fdfc0023 --- server/camlistored/ui/index.js | 2 +- server/camlistored/ui/search.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/camlistored/ui/index.js b/server/camlistored/ui/index.js index 0d9af7420..1c4438ec1 100644 --- a/server/camlistored/ui/index.js +++ b/server/camlistored/ui/index.js @@ -139,7 +139,7 @@ camlistore.IndexPage.prototype.enterDocument = function() { this.eh_.listen( this.toolbar_, camlistore.Toolbar.EventType.GOSEARCH, function() { - window.open('./search.html', 'Search'); + window.location.href = "./search.html"; }); this.eh_.listen( diff --git a/server/camlistored/ui/search.js b/server/camlistored/ui/search.js index 1f059c045..94c58bfc6 100644 --- a/server/camlistored/ui/search.js +++ b/server/camlistored/ui/search.js @@ -160,7 +160,7 @@ camlistore.SearchPage.prototype.enterDocument = function() { this.eh_.listen( this.toolbar_, camlistore.Toolbar.EventType.HOME, function() { - window.open('./index.html', 'Home'); + window.location.href = "./index.html"; } );