maj de la syntaxe
This commit is contained in:
@@ -27,11 +27,7 @@
|
||||
<option value="Licence">Licence</option>
|
||||
<option value="Licence_Las">Licence - L.AS</option>
|
||||
<option value="CPGE">CPGE</option>
|
||||
<option value="BTS Agricole">BTS Agricole</option>
|
||||
<option value="DN MADE">DN MADE</option>
|
||||
<option value="DCG">DCG</option>
|
||||
<option value="Ecole de Commerce">École de Commerce</option>
|
||||
<option value="Ecole d'Ingénieurs">École d'Ingénieurs</option>
|
||||
<option value="IFSI">IFSI</option>
|
||||
<option value="PASS">PASS</option>
|
||||
<option value="EFTS">EFTS</option>
|
||||
@@ -100,39 +96,39 @@
|
||||
},
|
||||
|
||||
updateQuery(e) {
|
||||
this.update({ query: e.target.value })
|
||||
this.update({ query: e.target.value });
|
||||
},
|
||||
|
||||
handleKey(e) {
|
||||
if (e.key === 'Enter') {
|
||||
this.submitSearch()
|
||||
this.submitSearch();
|
||||
}
|
||||
},
|
||||
|
||||
toggleFilters() {
|
||||
var visible = !this.state.showFilters
|
||||
var label = visible ? 'Masquer les filtres' : 'Filtres avancés'
|
||||
this.update({ showFilters: visible, labelFiltres: label })
|
||||
var visible = !this.state.showFilters;
|
||||
var label = visible ? 'Masquer les filtres' : 'Filtres avancés';
|
||||
this.update({ showFilters: visible, labelFiltres: label });
|
||||
},
|
||||
|
||||
updateFiliere(e) {
|
||||
this.update({ filiere: e.target.value })
|
||||
this.update({ filiere: e.target.value });
|
||||
},
|
||||
|
||||
updateSelectivite(e) {
|
||||
this.update({ selectivite: e.target.value })
|
||||
this.update({ selectivite: e.target.value });
|
||||
},
|
||||
|
||||
updateRegion(e) {
|
||||
this.update({ region: e.target.value })
|
||||
this.update({ region: e.target.value });
|
||||
},
|
||||
|
||||
updateTauxMin(e) {
|
||||
this.update({ tauxMin: Number(e.target.value) })
|
||||
this.update({ tauxMin: Number(e.target.value) });
|
||||
},
|
||||
|
||||
updateTauxMax(e) {
|
||||
this.update({ tauxMax: Number(e.target.value) })
|
||||
this.update({ tauxMax: Number(e.target.value) });
|
||||
},
|
||||
|
||||
submitSearch() {
|
||||
@@ -142,10 +138,10 @@
|
||||
region: this.state.region,
|
||||
tauxMin: this.state.tauxMin,
|
||||
tauxMax: this.state.tauxMax
|
||||
}
|
||||
};
|
||||
|
||||
this.props.onsearch(this.state.query, filters)
|
||||
this.props.onsearch(this.state.query, filters);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
</search-bar>
|
||||
|
||||
Reference in New Issue
Block a user