Fix form submit and reload

This commit is contained in:
Meutel 2017-01-15 16:12:04 +01:00
parent baac16787c
commit 8c39224feb
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@
<h3>Recherche</h3>
</div>
<div class="panel-body">
<form id="searchForm">
<form id="searchForm" @submit="searchFull" v-on:submit.prevent="onSubmit">
<div class="form-group">
<input type="text" class="form-control" placeholder="Recherche" v-model="q">
</div>
@ -73,7 +73,7 @@
<p class="help-block">Cocher pour rechercher les élements contenant tous les mots saisis</p>
</div>
</div>
<button type="button" class="btn btn-primary" @click="searchFull">Rechercher</button>
<button type="submit" class="btn btn-primary">Rechercher</button>
</form>
</div>
</div>

View File

@ -117,6 +117,7 @@ var app = new Vue({
break;
}
}
return false;
},
searchUrl: function() {
if (this.urlParams.q) {