mirror of https://github.com/perkeep/perkeep.git
UI toolbar: open search or index in same window/tab
Change-Id: I242fc4a23437b8ccf6bc6f33c3f8a7d9fdfc0023
This commit is contained in:
parent
f5950a8c4b
commit
847c583183
|
@ -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(
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue