Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
for issue #131
Browse files Browse the repository at this point in the history
reset research when we chick on the main icon
  • Loading branch information
seblemoine committed Jul 10, 2018
1 parent 33ce6e7 commit 98099ec
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/front/src/semapps-header/semapps-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<h1>SemApps </h1>
<div class="col hidden-xs col-sm-2 col-md-2 col-lg-offset-1 col-lg-2 col-search-logo ">
<div class="logo-circle">
<a title="Accueil" href="/rechercher" target="_parent" >
<a title="Accueil" href="/rechercher" target="_self" on-tap="handleResetClick">
<semapps-logo-mini picture="../../../common/images/logo.png"></semapps-logo-mini>
</a>
</div>
Expand Down
7 changes: 7 additions & 0 deletions web/front/src/semapps-header/semapps-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Polymer({
semapps.realLink(e);
},

handleResetClick(e) {
"use strict";
semapps.domId('searchText').value = '';
semapps.domId('searchThemeFilter').value = '';
semapps.goSearch();
},

attached() {
"use strict";
SemAppsCarto.ready(this.start.bind(this));
Expand Down
2 changes: 1 addition & 1 deletion web/front/src/semapps-header/semapps-header.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/front/src/semapps-header/semapps-header.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98099ec

Please sign in to comment.