UI toolbar: open search or index in same window/tab

Change-Id: I242fc4a23437b8ccf6bc6f33c3f8a7d9fdfc0023
This commit is contained in:
mpl 2013-07-16 16:43:03 +02:00
parent f5950a8c4b
commit 847c583183
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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";
}
);